|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fontbox.cff.DataOutput
public class DataOutput
Constructor Summary | |
---|---|
DataOutput()
Constructor. |
|
DataOutput(java.lang.String encoding)
Constructor with a given encoding. |
Method Summary | |
---|---|
byte[] |
getBytes()
Returns the written data buffer as byte array. |
void |
print(java.lang.String string)
Write the given string to the buffer using the given encoding. |
void |
println()
Add a newline to the given string. |
void |
println(java.lang.String string)
Write the given string to the buffer using the given encoding. |
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. |
void |
write(int value)
Write an int value to the buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataOutput()
public DataOutput(java.lang.String encoding)
encoding
- the encoding to be used for writingMethod Detail |
---|
public byte[] getBytes()
public void write(int value)
value
- the given valuepublic void write(byte[] buffer)
buffer
- the given byte arraypublic void write(byte[] buffer, int offset, int length)
buffer
- the given byte bufferoffset
- the offset where to startlength
- the amount of bytes to be written from the arraypublic void print(java.lang.String string) throws java.io.IOException
string
- the given string
java.io.IOException
- If an error occurs during writing the data to the bufferpublic void println(java.lang.String string) throws java.io.IOException
string
- the given string
java.io.IOException
- If an error occurs during writing the data to the bufferpublic void println()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |