Class PICTUtil
java.lang.Object
com.twelvemonkeys.imageio.plugins.pict.PICTUtil
PICTUtil
- Version:
- $Id: PICTUtil.java,v 1.0 Feb 16, 2009 8:46:27 PM haraldk Exp$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Charsetstatic PatternreadColorPattern(DataInput pStream) Reads a variable widthcolor patternfrom the given streamstatic IndexColorModelreadColorTable(DataInput pStream, int pPixelSize) Reads aColorTabledata structure from the given stream.static DimensionreadDimension(DataInput pStream) Reads a dimension from the given stream.static doublereadFixedPoint(DataInput pStream) Reads a fixed point number from the given stream.(package private) static StringreadIdString(DataInput pStream) static StringreadPascalString(DataInput pStream) Reads a Pascal String from the given stream.static PatternreadPattern(DataInput pStream) Reads apatternfrom the given stream.static PatternreadPattern(DataInput pStream, Color fg, Color bg) static ColorreadRGBColor(DataInput pStream) Reads anRGBColorrecord from the given stream.static StringReads a 32 byte fixed length Pascal string from the given input.
-
Field Details
-
ENC_MAC_ROMAN
- See Also:
-
ENCODING
-
-
Constructor Details
-
PICTUtil
PICTUtil()
-
-
Method Details
-
initEncoding
-
readFixedPoint
Reads a fixed point number from the given stream.- Parameters:
pStream- the input stream- Returns:
- the number as a
double. - Throws:
IOException- if an I/O error occurs during read
-
readIdString
- Throws:
IOException
-
readDimension
Reads a dimension from the given stream.- Parameters:
pStream- the input stream- Returns:
- the dimension read
- Throws:
IOException- if an I/O error occurs during read
-
readStr31
Reads a 32 byte fixed length Pascal string from the given input. The input stream must be positioned at the length byte of the text, the text will be no longer than 31 characters long.- Parameters:
pStream- the input stream- Returns:
- the text read
- Throws:
IOException- if an I/O exception occurs during reading
-
readPascalString
Reads a Pascal String from the given stream. The input stream must be positioned at the length byte of the text, which can thus be a maximum of 255 characters long.- Parameters:
pStream- the input stream- Returns:
- the text read
- Throws:
IOException- if an I/O exception occurs during reading
-
readPattern
Reads apatternfrom the given stream.- Parameters:
pStream- the input stream- Returns:
- the pattern read
- Throws:
IOException- if an I/O error occurs during read
-
readPattern
- Throws:
IOException
-
readColorPattern
Reads a variable widthcolor patternfrom the given stream- Parameters:
pStream- the input stream- Returns:
- the pattern read
- Throws:
IOException- if an I/O error occurs during read
-
readRGBColor
Reads anRGBColorrecord from the given stream.- Parameters:
pStream- the input stream- Returns:
- the color read
- Throws:
IOException- if an I/O error occurs during read
-
readColorTable
Reads aColorTabledata structure from the given stream.- Parameters:
pStream- the input streampPixelSize- the pixel size- Returns:
- the indexed color model created from the
ColorSpecrecords read. - Throws:
IOException- if an I/O error occurs during read
-