/** * Get a BE short value from an InputStream * * @param stream the InputStream from which the short is to be read * @return the short (16-bit) value * @throws IOException will be propagated back to the caller * @throws BufferUnderrunException if the stream cannot provide enough bytes */ public static short readShortBE(InputStream stream) throws IOException, BufferUnderrunException { return (short) readUShortBE(stream); }
id = EndianUtils.readUShortBE(stream);
EndianUtils.readUShortBE(is); } catch (EndianUtils.BufferUnderrunException e) { throw new IOException(e);
int version = EndianUtils.readUShortBE(stream); if (version == 1 || version == 2) { int numChannels = EndianUtils.readUShortBE(stream); int depth = EndianUtils.readUShortBE(stream); metadata.set(TIFF.BITS_PER_SAMPLE, Integer.toString(depth)); int colorMode = EndianUtils.readUShortBE(stream); metadata.set(Photoshop.COLOR_MODE, Photoshop._COLOR_MODE_CHOICES_INDEXED[colorMode]);
/** * Get a BE short value from an InputStream * * @param stream the InputStream from which the short is to be read * @return the short (16-bit) value * @throws IOException will be propagated back to the caller * @throws BufferUnderrunException if the stream cannot provide enough bytes */ public static short readShortBE(InputStream stream) throws IOException, BufferUnderrunException { return (short) readUShortBE(stream); }
/** * Get a BE short value from an InputStream * * @param stream the InputStream from which the short is to be read * @return the short (16-bit) value * @throws IOException will be propagated back to the caller * @throws BufferUnderrunException if the stream cannot provide enough bytes */ public static short readShortBE(InputStream stream) throws IOException, BufferUnderrunException { return (short) readUShortBE(stream); }
type = EndianUtils.readUShortLE(stream); } else { type = EndianUtils.readUShortBE(stream); machine = EndianUtils.readUShortLE(stream); } else { machine = EndianUtils.readUShortBE(stream);
id = EndianUtils.readUShortBE(stream);
id = EndianUtils.readUShortBE(stream);
EndianUtils.readUShortBE(is); } catch (EndianUtils.BufferUnderrunException e) { throw new IOException(e);
EndianUtils.readUShortBE(is); } catch (EndianUtils.BufferUnderrunException e) { throw new IOException(e);
int version = EndianUtils.readUShortBE(stream); if (version == 1 || version == 2) { int numChannels = EndianUtils.readUShortBE(stream); int depth = EndianUtils.readUShortBE(stream); metadata.set(TIFF.BITS_PER_SAMPLE, Integer.toString(depth)); int colorMode = EndianUtils.readUShortBE(stream); metadata.set(Photoshop.COLOR_MODE, Photoshop._COLOR_MODE_CHOICES_INDEXED[colorMode]);
int version = EndianUtils.readUShortBE(stream); if (version == 1 || version == 2) { int numChannels = EndianUtils.readUShortBE(stream); int depth = EndianUtils.readUShortBE(stream); metadata.set(TIFF.BITS_PER_SAMPLE, Integer.toString(depth)); int colorMode = EndianUtils.readUShortBE(stream); metadata.set(Photoshop.COLOR_MODE, Photoshop._COLOR_MODE_CHOICES_INDEXED[colorMode]);
type = EndianUtils.readUShortLE(stream); } else { type = EndianUtils.readUShortBE(stream); machine = EndianUtils.readUShortLE(stream); } else { machine = EndianUtils.readUShortBE(stream);
type = EndianUtils.readUShortLE(stream); } else { type = EndianUtils.readUShortBE(stream); machine = EndianUtils.readUShortLE(stream); } else { machine = EndianUtils.readUShortBE(stream);