org.tritonus.share.sampled.file
Class TSeekableDataOutputStream

java.lang.Object
  extended byjava.io.RandomAccessFile
      extended byorg.tritonus.share.sampled.file.TSeekableDataOutputStream
All Implemented Interfaces:
Closeable, DataInput, DataOutput, TDataOutputStream

public class TSeekableDataOutputStream
extends RandomAccessFile
implements TDataOutputStream

A TDataOutputStream that allows seeking.

Author:
Florian Bomers, Matthias Pfisterer

Constructor Summary
TSeekableDataOutputStream(File file)
           
 
Method Summary
 boolean supportsSeek()
           
 void writeLittleEndian16(short value)
           
 void writeLittleEndian32(int value)
           
 
Methods inherited from class java.io.RandomAccessFile
close, getChannel, getFD, getFilePointer, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tritonus.share.sampled.file.TDataOutputStream
close, getFilePointer, length, seek
 
Methods inherited from interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 

Constructor Detail

TSeekableDataOutputStream

public TSeekableDataOutputStream(File file)
                          throws IOException
Throws:
IOException
Method Detail

supportsSeek

public boolean supportsSeek()
Specified by:
supportsSeek in interface TDataOutputStream

writeLittleEndian32

public void writeLittleEndian32(int value)
                         throws IOException
Specified by:
writeLittleEndian32 in interface TDataOutputStream
Throws:
IOException

writeLittleEndian16

public void writeLittleEndian16(short value)
                         throws IOException
Specified by:
writeLittleEndian16 in interface TDataOutputStream
Throws:
IOException