Method from org.apache.pdfbox.pdfwriter.COSStandardOutputStream Detail: |
public long getPos() {
return pos;
}
This will get the current position in the stream. |
public boolean isOnNewLine() {
return onNewLine;
}
This will tell if we are on a newling. |
public void setOnNewLine(boolean newOnNewLine) {
onNewLine = newOnNewLine;
}
This will set a flag telling if we are on a newline. |
public void write(int b) throws IOException {
setOnNewLine(false);
out.write(b);
pos++;
}
This will write a single byte to the stream. |
public void write(byte[] b,
int off,
int len) throws IOException {
setOnNewLine(false);
out.write(b, off, len);
pos += len;
}
This will write some byte to the stream. |
public void writeCRLF() throws IOException {
write(CRLF);
// setOnNewLine(true);
}
This will write a CRLF to the stream. |
public void writeEOL() throws IOException {
if (!isOnNewLine())
{
write(EOL);
setOnNewLine(true);
}
}
This will write an EOL to the stream. |
public void writeLF() throws IOException {
write(LF);
// setOnNewLine(true);
}
This will write a Linefeed to the stream. |