@@ -0,0 +1,709 @@
+package org.zstack.utils;%0A%0Aimport org.apache.commons.io.ByteOrderMark;%0Aimport org.apache.commons.io.input.BOMInputStream;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.util.List;%0A%0Aimport static java.util.Arrays.asList;%0A%0A/**%0A * Created by kayo on 2018/10/9.%0A */%0Apublic class BOMUtils %7B%0A    public static void skipBOM(InputStream inputStream) throws IOException %7B%0A        BOMInputStream bomi = new BOMInputStream(inputStream,%0A                ByteOrderMark.UTF_16BE,%0A                ByteOrderMark.UTF_16LE,%0A                ByteOrderMark.UTF_32BE,%0A                ByteOrderMark.UTF_32LE);%0A        if (bomi.hasBOM()) %7B%0A            inputStream.skip(bomi.getBOM().length());%0A        %7D%0A    %7D%0A%7D%0A

Add BOM utils to support skip bom