PIMHelper.java 491 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.day.cq.dam.pim;

import java.io.IOException;
import java.io.InputStream;

public class PIMHelper {
    public static void skipBOM(InputStream stream, String encodingFormat) throws IOException {
        if (encodingFormat != null) {
            if (encodingFormat.contains("UTF-16")) {
                stream.skip(2);
            } else if (encodingFormat.contains("UTF-32")) {
                stream.skip(4);
            }
        }
    }
}