com.vwp.sound.mod.util.io
Interface RandomAccess

All Known Implementing Classes:
AbstractRandomAccess, RandomAccessArray, RandomAccessFile

public interface RandomAccess

Author:
torkjel

Method Summary
 void close()
           
 long getPosition()
           
 int read()
           
 byte readByte()
           
 int readInt()
           
 short readShort()
           
 String readString(int len)
           
 int readUnsignedByte()
           
 int readUnsignedInt()
           
 int readUnsignedShort()
           
 String readZeroPaddedString(int maxLen)
          read a string field of maximum maxLen characters.
 void seek(long pos)
           
 void skipBytes(int skip)
           
 

Method Detail

seek

void seek(long pos)
          throws IOException
Throws:
IOException

skipBytes

void skipBytes(int skip)
               throws IOException
Throws:
IOException

getPosition

long getPosition()
                 throws IOException
Throws:
IOException

readByte

byte readByte()
              throws IOException
Throws:
IOException

readShort

short readShort()
                throws IOException
Throws:
IOException

readInt

int readInt()
            throws IOException
Throws:
IOException

read

int read()
         throws IOException
Throws:
IOException

readString

String readString(int len)
                  throws IOException
Throws:
IOException

readZeroPaddedString

String readZeroPaddedString(int maxLen)
                            throws IOException
read a string field of maximum maxLen characters. The string may be shorter, and is then assumed to be padded with zeros. Only the non-zero part is returned, but the position will always be moved maxLen bytes forward.

Parameters:
maxLen -
Returns:
Throws:
IOException

readUnsignedInt

int readUnsignedInt()
                    throws IOException
Throws:
IOException

readUnsignedShort

int readUnsignedShort()
                      throws IOException
Throws:
IOException

readUnsignedByte

int readUnsignedByte()
                     throws IOException
Throws:
IOException

close

void close()
           throws IOException
Throws:
IOException