Package com.tom_roush.pdfbox.io
Class RandomAccessOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.tom_roush.pdfbox.io.RandomAccessOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class RandomAccessOutputStream extends OutputStream
An OutputStream which writes to a RandomAccessWrite.
-
-
Constructor Summary
Constructors Constructor Description RandomAccessOutputStream(RandomAccessWrite writer)Constructor to create a new output stream which writes to the given RandomAccessWrite.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(byte[] b)voidwrite(byte[] b, int offset, int length)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
-
-
-
Constructor Detail
-
RandomAccessOutputStream
public RandomAccessOutputStream(RandomAccessWrite writer)
Constructor to create a new output stream which writes to the given RandomAccessWrite.- Parameters:
writer- The random access writer for output
-
-
Method Detail
-
write
public void write(byte[] b, int offset, int length) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
-