org.jaudiotagger.audio.asf.io
Class RandomAccessFileOutputStream
java.lang.Object
java.io.OutputStream
org.jaudiotagger.audio.asf.io.RandomAccessFileOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public final class RandomAccessFileOutputStream
- extends java.io.OutputStream
Wraps a RandomAccessFile
into an OutputStream
.
- Author:
- Christian Laireiter
Field Summary |
private java.io.RandomAccessFile |
targetFile
the file to write to. |
Method Summary |
void |
write(byte[] bytes,
int off,
int len)
|
void |
write(int toWrite)
|
Methods inherited from class java.io.OutputStream |
close, flush, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
targetFile
private final java.io.RandomAccessFile targetFile
- the file to write to.
RandomAccessFileOutputStream
public RandomAccessFileOutputStream(java.io.RandomAccessFile target)
- Creates an instance.
- Parameters:
target
- file to write to.
write
public void write(byte[] bytes,
int off,
int len)
throws java.io.IOException
-
- Overrides:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(int toWrite)
throws java.io.IOException
-
- Specified by:
write
in class java.io.OutputStream
- Throws:
java.io.IOException