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 java.lang.Object
- implements RandomAccess
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRandomAccess
public AbstractRandomAccess()
readString
public java.lang.String readString(int len)
throws java.io.IOException
- Specified by:
readString in interface RandomAccess
- Throws:
java.io.IOException
readZeroPaddedString
public java.lang.String readZeroPaddedString(int maxLen)
throws java.io.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:
- zero padded string value
- Throws:
java.io.IOException
readUnsignedShort
public int readUnsignedShort()
throws java.io.IOException
- Specified by:
readUnsignedShort in interface RandomAccess
- Throws:
java.io.IOException
readUnsignedInt
public int readUnsignedInt()
throws java.io.IOException
- Specified by:
readUnsignedInt in interface RandomAccess
- Throws:
java.io.IOException