com.vwp.sound.mod.util.io
Class AbstractRandomAccess
java.lang.Object
com.vwp.sound.mod.util.io.AbstractRandomAccess
- All Implemented Interfaces:
- RandomAccess
- Direct Known Subclasses:
- RandomAccessArray, RandomAccessFile
public abstract class AbstractRandomAccess
- extends Object
- implements RandomAccess
AbstractRandomAccess
public AbstractRandomAccess()
readString
public String readString(int len)
throws IOException
- Specified by:
readString in interface RandomAccess
- Throws:
IOException
readZeroPaddedString
public String readZeroPaddedString(int maxLen)
throws IOException
- Description copied from interface:
RandomAccess
- 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.
- Specified by:
readZeroPaddedString in interface RandomAccess
- Returns:
-
- Throws:
IOException
readUnsignedShort
public int readUnsignedShort()
throws IOException
- Specified by:
readUnsignedShort in interface RandomAccess
- Throws:
IOException
readUnsignedInt
public int readUnsignedInt()
throws IOException
- Specified by:
readUnsignedInt in interface RandomAccess
- Throws:
IOException