org.tritonus.share.sampled.file
Interface TDataOutputStream

All Superinterfaces:
DataOutput
All Known Implementing Classes:
TNonSeekableDataOutputStream, TSeekableDataOutputStream

public interface TDataOutputStream
extends DataOutput

Interface for the file writing classes.

Like that it is possible to write to a file without knowing the length before.

Author:
Florian Bomers

Method Summary
 void close()
           
 long getFilePointer()
           
 long length()
           
 void seek(long position)
           
 boolean supportsSeek()
           
 void writeLittleEndian16(short value)
           
 void writeLittleEndian32(int value)
           
 
Methods inherited from interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 

Method Detail

supportsSeek

boolean supportsSeek()

seek

void seek(long position)
          throws IOException
Throws:
IOException

getFilePointer

long getFilePointer()
                    throws IOException
Throws:
IOException

length

long length()
            throws IOException
Throws:
IOException

writeLittleEndian32

void writeLittleEndian32(int value)
                         throws IOException
Throws:
IOException

writeLittleEndian16

void writeLittleEndian16(short value)
                         throws IOException
Throws:
IOException

close

void close()
           throws IOException
Throws:
IOException