org.tritonus.share.sampled.file
Class TNonSeekableDataOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byjava.io.DataOutputStream
              extended byorg.tritonus.share.sampled.file.TNonSeekableDataOutputStream
All Implemented Interfaces:
Closeable, DataOutput, TDataOutputStream

public class TNonSeekableDataOutputStream
extends DataOutputStream
implements TDataOutputStream

A TDataOutputStream that does not allow seeking.

Author:
Florian Bomers, Matthias Pfisterer

Field Summary
 
Fields inherited from class java.io.DataOutputStream
written
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
TNonSeekableDataOutputStream(OutputStream outputStream)
           
 
Method Summary
 long getFilePointer()
           
 long length()
           
 void seek(long position)
           
 boolean supportsSeek()
           
 void writeLittleEndian16(short value)
           
 void writeLittleEndian32(int value)
           
 
Methods inherited from class java.io.DataOutputStream
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.io.FilterOutputStream
close, write
 
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
 
Methods inherited from interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 

Constructor Detail

TNonSeekableDataOutputStream

public TNonSeekableDataOutputStream(OutputStream outputStream)
Method Detail

supportsSeek

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

seek

public void seek(long position)
          throws IOException
Specified by:
seek in interface TDataOutputStream
Throws:
IOException

getFilePointer

public long getFilePointer()
                    throws IOException
Specified by:
getFilePointer in interface TDataOutputStream
Throws:
IOException

length

public long length()
            throws IOException
Specified by:
length in interface TDataOutputStream
Throws:
IOException

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