Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdfwriter » [javadoc | source]
org.apache.pdfbox.pdfwriter
public class: COSStandardOutputStream [javadoc | source]
java.lang.Object
   java.io.OutputStream
      java.io.FilterOutputStream
         org.apache.pdfbox.pdfwriter.COSStandardOutputStream

All Implemented Interfaces:
    Closeable, Flushable

simple output stream with some minor features for generating "pretty" pdf files.
Field Summary
public static final  byte[] CRLF    To be used when 2 byte sequence is enforced. 
public static final  byte[] LF    Line feed character. 
public static final  byte[] EOL    standard line separator on this platform. 
Fields inherited from java.io.FilterOutputStream:
out
Constructor:
 public COSStandardOutputStream(OutputStream out) 
    COSOutputStream constructor comment.
    Parameters:
    out - The underlying stream to write to.
Method from org.apache.pdfbox.pdfwriter.COSStandardOutputStream Summary:
getPos,   isOnNewLine,   setOnNewLine,   write,   write,   writeCRLF,   writeEOL,   writeLF
Methods from java.io.FilterOutputStream:
close,   flush,   write,   write,   write
Methods from java.io.OutputStream:
close,   flush,   write,   write,   write
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdfwriter.COSStandardOutputStream Detail:
 public long getPos() 
    This will get the current position in the stream.
 public boolean isOnNewLine() 
    This will tell if we are on a newling.
 public  void setOnNewLine(boolean newOnNewLine) 
    This will set a flag telling if we are on a newline.
 public  void write(int b) throws IOException 
    This will write a single byte to the stream.
 public  void write(byte[] b,
    int off,
    int len) throws IOException 
    This will write some byte to the stream.
 public  void writeCRLF() throws IOException 
    This will write a CRLF to the stream.
 public  void writeEOL() throws IOException 
    This will write an EOL to the stream.
 public  void writeLF() throws IOException 
    This will write a Linefeed to the stream.