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 Charset
static Pattern
readColorPattern
(DataInput pStream) Reads a variable widthcolor pattern
from the given streamstatic IndexColorModel
readColorTable
(DataInput pStream, int pPixelSize) Reads aColorTable
data structure from the given stream.static Dimension
readDimension
(DataInput pStream) Reads a dimension from the given stream.static double
readFixedPoint
(DataInput pStream) Reads a fixed point number from the given stream.(package private) static String
readIdString
(DataInput pStream) static String
readPascalString
(DataInput pStream) Reads a Pascal String from the given stream.static Pattern
readPattern
(DataInput pStream) Reads apattern
from the given stream.static Pattern
readPattern
(DataInput pStream, Color fg, Color bg) static Color
readRGBColor
(DataInput pStream) Reads anRGBColor
record from the given stream.static String
Reads 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 apattern
from 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 pattern
from the given stream- Parameters:
pStream
- the input stream- Returns:
- the pattern read
- Throws:
IOException
- if an I/O error occurs during read
-
readRGBColor
Reads anRGBColor
record 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 aColorTable
data structure from the given stream.- Parameters:
pStream
- the input streampPixelSize
- the pixel size- Returns:
- the indexed color model created from the
ColorSpec
records read. - Throws:
IOException
- if an I/O error occurs during read
-