if (!ImageUtil.hasImageInputStream(src)) {
return null;
}
ImageInputStream in = ImageUtil.needImageInputStream(src);
in.mark();
ByteOrder originalByteOrder = in.getByteOrder();
in.setByteOrder(ByteOrder.LITTLE_ENDIAN);
EPSBinaryFileHeader binaryHeader = null;
try {
long magic = in.readUnsignedInt();
magic &= 0xFFFFFFFFL; //Work-around for bug in Java 1.4.2