| java.lang.Object java.io.OutputStream org.pdfbox.io.RandomAccessFileOutputStream
RandomAccessFileOutputStream | public class RandomAccessFileOutputStream extends OutputStream (Code) | | This will write to a RandomAccessFile in the filesystem and keep track
of the position it is writing to and the length of the stream.
author: Ben Litchfield version: $Revision: 1.5 $ |
Method Summary | |
public COSBase | getExpectedLength() This will get the length that the PDF document specified this stream
should be. | public long | getLength() The number of bytes written to the stream. | public long | getPosition() This will get the position in the RAF that the stream was written
to. | public void | setExpectedLength(COSBase value) This will set the expected length of this stream. | public void | write(byte[] b, int offset, int length) | public void | write(int b) |
RandomAccessFileOutputStream | public RandomAccessFileOutputStream(RandomAccess raf) throws IOException(Code) | | Constructor to create an output stream that will write to the end of a
random access file.
Parameters: raf - The file to write to. throws: IOException - If there is a problem accessing the raf. |
getExpectedLength | public COSBase getExpectedLength()(Code) | | This will get the length that the PDF document specified this stream
should be. This may not match the number of bytes read.
The expected length. |
getLength | public long getLength()(Code) | | The number of bytes written to the stream.
The number of bytes read to the stream. |
getPosition | public long getPosition()(Code) | | This will get the position in the RAF that the stream was written
to.
The position in the raf where the file can be obtained. |
setExpectedLength | public void setExpectedLength(COSBase value)(Code) | | This will set the expected length of this stream.
Parameters: value - The expected value. |
|
|