org.apache.fontbox.cff
public class DataOutput extends Object
Version: $Revision: 1.0 $
Constructor Summary | |
---|---|
DataOutput()
Constructor. | |
DataOutput(String encoding)
Constructor with a given encoding. |
Method Summary | |
---|---|
byte[] | getBytes()
Returns the written data buffer as byte array. |
void | print(String string)
Write the given string to the buffer using the given encoding. |
void | println(String string)
Write the given string to the buffer using the given encoding.
|
void | println()
Add a newline to the given string. |
void | write(int value)
Write an int value to the buffer. |
void | write(byte[] buffer)
Write a byte array to the buffer. |
void | write(byte[] buffer, int offset, int length)
Write a part of a byte array to the buffer. |
Parameters: encoding the encoding to be used for writing
Returns: the data buffer as byte array
Parameters: string the given string
Throws: IOException If an error occurs during writing the data to the buffer
Parameters: string the given string
Throws: IOException If an error occurs during writing the data to the buffer
Parameters: value the given value
Parameters: buffer the given byte array
Parameters: buffer the given byte buffer offset the offset where to start length the amount of bytes to be written from the array