|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vwp.sound.mod.util.io.AbstractRandomAccess
public abstract class AbstractRandomAccess
Constructor Summary | |
---|---|
AbstractRandomAccess()
|
Method Summary | |
---|---|
java.lang.String |
readString(int len)
|
int |
readUnsignedInt()
|
int |
readUnsignedShort()
|
java.lang.String |
readZeroPaddedString(int maxLen)
read a string field of maximum maxLen characters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vwp.sound.mod.util.io.RandomAccess |
---|
close, getPosition, read, readByte, readInt, readShort, readUnsignedByte, seek, skipBytes |
Constructor Detail |
---|
public AbstractRandomAccess()
Method Detail |
---|
public java.lang.String readString(int len) throws java.io.IOException
readString
in interface RandomAccess
java.io.IOException
public java.lang.String readZeroPaddedString(int maxLen) throws java.io.IOException
RandomAccess
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.
readZeroPaddedString
in interface RandomAccess
java.io.IOException
public int readUnsignedShort() throws java.io.IOException
readUnsignedShort
in interface RandomAccess
java.io.IOException
public int readUnsignedInt() throws java.io.IOException
readUnsignedInt
in interface RandomAccess
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |