org.jaudiotagger.audio.asf.io
Class RandomAccessFileOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by 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.
 
Constructor Summary
RandomAccessFileOutputStream(java.io.RandomAccessFile target)
          Creates an instance.
 
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
 

Field Detail

targetFile

private final java.io.RandomAccessFile targetFile
the file to write to.

Constructor Detail

RandomAccessFileOutputStream

public RandomAccessFileOutputStream(java.io.RandomAccessFile target)
Creates an instance.

Parameters:
target - file to write to.
Method Detail

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