com.imagero.uio.io
Class RandomAccessOutputStream
java.lang.Object
java.io.OutputStream
com.imagero.uio.io.RandomAccessOutputStream
- public class RandomAccessOutputStream
- extends java.io.OutputStream
RandomAccessOutputStream.java
Can be used as bridge between RandomAccessFile and OutputStream.
Methods inherited from class java.io.OutputStream |
flush |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ra
protected RandomAccess ra
pos
protected long pos
RandomAccessOutputStream
public RandomAccessOutputStream(RandomAccess ra)
RandomAccessOutputStream
public RandomAccessOutputStream(RandomAccess ra,
long startPos)
checkPos
protected void checkPos()
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(int b)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException