public interface PsServer
Modifier and Type | Method and Description |
---|---|
PsSystemDict |
getJava2dSystemDict(java.awt.Graphics2D graphics)
Returns a system dictionary which can draw on a Java2D graphic.
|
PsSystemDict |
getPdfSystemDict()
Returns a system dictionary suitable for writing into a PDF stream.
|
CharSet |
getPredefinedCharSet(CharSet.Predefined predefined)
Returns one of the predefined character sets.
|
CharSet |
getPredefinedCharSet(java.lang.String name)
Returns one of the predefined character sets.
|
PsEncoding |
getPredefinedEncoding(PsEncoding.Predefined predefinedVector)
Returns one of the predefined encodings.
|
PsEncoding |
getPredefinedEncoding(java.lang.String name)
Returns one of the predefined encodings.
|
GlyphList |
getPredefinedGlyphList(GlyphList.Predefined predefined)
Returns one of the predefined glyphs lists.
|
PsSystemDict |
getReadOnlySystemDict()
Returns a read-only system dictionary.
|
CharSet |
makeCharSet(java.lang.String name,
char[] characterSet)
Creates a new CharSet that will contain only 16-bit characters.
|
CharSet |
makeCharSet(java.lang.String name,
int[] characterSet)
Creates a new CharSet containing 16-bit codePoints, 32-bit code points, or both.
|
Cmap04 |
makeCmap04(java.lang.String name,
int expectedEntries)
Creates a new Cmap04 with a given name and expected size.
|
Cmap12 |
makeCmap12(java.lang.String name,
int expectedEntries)
Creates a new Cmap12 with a given name and expected size.
|
java.io.InputStream |
makeDecodeFilter(PsFilterType filterType,
java.io.InputStream inputStream)
Creates a decode filter of a specified type.
|
PsEncodeFilter |
makeEncodeFilter(PsFilterType filterType,
java.io.OutputStream outputStream)
Creates an encode filter of a specified type.
|
PsEncoding |
makeEncodingVector(java.lang.String name,
char[] codePoints,
char[] codePointIndexes)
Create a new EncodingVector instance and registers it for later use.
|
PsInterpreter |
makeInterpreter(PsInput psInput,
PsSystemDict systemDict)
Returns an interpreter.
|
PsInput |
makePsInput(java.io.File inputFile)
Creates a
PsInput instance from a File. |
CharSet |
parseCharSet(java.lang.String name,
java.io.InputStream inputStream)
Parse a character set from an input stream.
|
PsEncoding |
parseEncodingVector(java.lang.String name,
java.io.InputStream inputStream,
int columnNum,
int radix,
java.util.List<java.lang.String> glyphLists)
Parse an encoding vector from an input stream.
|
GlyphList |
parseGlyphList(java.lang.String name,
java.io.InputStream inputStream)
Parse a glyph list from an input stream.
|
java.io.InputStream makeDecodeFilter(PsFilterType filterType, java.io.InputStream inputStream)
filterType
- The type of filter to be created.inputStream
- The underlying input stream to be filtered.PsEncodeFilter makeEncodeFilter(PsFilterType filterType, java.io.OutputStream outputStream)
filterType
- The type of filter to be created.outputStream
- The underlying output stream to be filtered.PsInput makePsInput(java.io.File inputFile) throws java.io.IOException
PsInput
instance from a File.inputFile
- The file to be processed as PostScript input.java.io.IOException
- For errors opening the file.PsSystemDict getReadOnlySystemDict() throws PsException
PsException
- If this operation is unsupported.PsSystemDict getPdfSystemDict() throws PsException
PsException
- If this operation is unsupported.PsSystemDict getJava2dSystemDict(java.awt.Graphics2D graphics) throws PsException
graphics
- The Java2D graphics instance.PsException
- If this operation is unsupported.PsInterpreter makeInterpreter(PsInput psInput, PsSystemDict systemDict) throws PsException
psInput
- The input source to be interpreted.systemDict
- The system dictionary.PsException
- For errors creating the interpreter.PsEncoding getPredefinedEncoding(java.lang.String name)
name
- The name of the predefined encoding to be returned.getPredefinedEncoding(PsEncoding.Predefined)
PsEncoding getPredefinedEncoding(PsEncoding.Predefined predefinedVector)
predefinedVector
- The predefined encoding to be returned.getPredefinedEncoding(String)
PsEncoding makeEncodingVector(java.lang.String name, char[] codePoints, char[] codePointIndexes)
name
- The name of this encoding.codePoints
- The array of Unicode code points supported by this encoding.codePointIndexes
- The array of encoded indexes that is parallel to codePoints.
codePointIndexes[n] should contain the encoded index that corresponds to the Unicode code point at codePoints[n].PsEncoding parseEncodingVector(java.lang.String name, java.io.InputStream inputStream, int columnNum, int radix, java.util.List<java.lang.String> glyphLists) throws java.io.IOException, PsException
name
- The name of the encoding vector to be parsed.inputStream
- The input stream containing the raw encoding vector information.columnNum
- The column number in the input file that should be read to get the encoded value for this
encoding.
Column number 1 is the first field after the glyph name, that is, field 2.radix
- The radix of the numbering system (10 for decimal, 8 for octal, etc.).glyphLists
- A space-separated list of glyph lists to be consulted when mapping glyph names to Unicode code
points.java.io.IOException
- For errors opening or reading the input stream.PsException
- For errors parsing the encoding vector.CharSet getPredefinedCharSet(java.lang.String name)
name
- The name of the predefined character set to be returned.getPredefinedCharSet(org.axsl.ps.CharSet.Predefined)
CharSet getPredefinedCharSet(CharSet.Predefined predefined)
predefined
- The predefined character set to be returned.getPredefinedCharSet(org.axsl.ps.CharSet.Predefined)
CharSet makeCharSet(java.lang.String name, int[] characterSet)
makeCharSet(String, char[])
may also be used.name
- The name of this character set.characterSet
- The array containing the code points in this character set.makeCharSet(String, char[])
CharSet makeCharSet(java.lang.String name, char[] characterSet)
makeCharSet(String, int[])
instead.name
- The name of the new character set.characterSet
- The array of chars containing the code points in this character set.makeCharSet(String, int[])
CharSet parseCharSet(java.lang.String name, java.io.InputStream inputStream) throws java.io.IOException, PsException
name
- The name of the character set to be parsed.inputStream
- The input stream containing the raw character set information.java.io.IOException
- For errors opening or reading the input stream.PsException
- For errors parsing the character set.GlyphList getPredefinedGlyphList(GlyphList.Predefined predefined)
predefined
- The predefined glyph list to be returned.GlyphList parseGlyphList(java.lang.String name, java.io.InputStream inputStream) throws java.io.IOException, PsException
name
- The name of the glyph list to be parsed.inputStream
- The input stream containing the raw glyph list information.java.io.IOException
- For errors opening or reading the input stream.PsException
- For errors parsing the glyph list.Cmap04 makeCmap04(java.lang.String name, int expectedEntries)
name
- The name of this encoding.expectedEntries
- The number of expected entries in this encoding.
Setting this to the correct value gives the implementation an opportunity for more efficient processing.Cmap12 makeCmap12(java.lang.String name, int expectedEntries)
name
- The name of this encoding.expectedEntries
- The number of expected entries in this encoding.
Setting this to the correct value gives the implementation an opportunity for more efficient processing.This documentation was created 2017-01-24 at 21:26 GMT by The aXSL Group and may be freely copied. See license for details.