org.tritonus.share.sampled.file
Class TSeekableDataOutputStream

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

public class TSeekableDataOutputStream
extends java.io.RandomAccessFile
implements TDataOutputStream

A TDataOutputStream that allows seeking.


Constructor Summary
TSeekableDataOutputStream(java.io.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
equals, 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(java.io.File file)
                          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

supportsSeek

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

writeLittleEndian32

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

writeLittleEndian16

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