|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.io.BufferedInputStream
com.sun.j3d.loaders.lw3d.LWOBFileReader
class LWOBFileReader
Field Summary | |
---|---|
protected DebugOutput |
debugPrinter
|
(package private) static int |
EXCEPTION
|
(package private) static int |
LINE_TRACE
|
protected int |
marker
|
(package private) static int |
MISC
|
(package private) static int |
NONE
|
protected java.lang.String |
theFilename
|
(package private) static int |
TRACE
|
(package private) static int |
VALUES
|
Fields inherited from class java.io.BufferedInputStream |
---|
buf, count, marklimit, markpos, pos |
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
LWOBFileReader(java.lang.String filename)
Constructor. |
|
LWOBFileReader(java.net.URL url)
|
Method Summary | |
---|---|
protected void |
debugOutputLn(int outputType,
java.lang.String theOutput)
|
java.lang.String |
getFilename()
Returns the name of the file associated with this stream |
float |
getFloat()
Read four bytes from the file and return their float value |
int |
getInt()
Read four bytes from the file and return their integer value |
int |
getMarker()
Returns the current position in the file |
int |
getShortInt()
Reads two bytes from the file and returns their integer value. |
java.lang.String |
getString()
Returns a string read from the file. |
java.lang.String |
getToken()
|
void |
getVerts(float[] ar,
int num)
Reads an array of xyz values. |
int |
read()
|
int |
read(byte[] buffer,
int offset,
int count)
|
void |
skipLength(int amount)
Skip ahead amount bytes in the file |
Methods inherited from class java.io.BufferedInputStream |
---|
available, close, mark, markSupported, reset, skip |
Methods inherited from class java.io.FilterInputStream |
---|
read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int TRACE
static final int VALUES
static final int MISC
static final int LINE_TRACE
static final int NONE
static final int EXCEPTION
protected DebugOutput debugPrinter
protected java.lang.String theFilename
protected int marker
Constructor Detail |
---|
public LWOBFileReader(java.lang.String filename) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public LWOBFileReader(java.net.URL url) throws java.io.IOException
java.io.IOException
Method Detail |
---|
protected void debugOutputLn(int outputType, java.lang.String theOutput)
public java.lang.String getToken() throws ParsingErrorException
ParsingErrorException
public void skipLength(int amount) throws ParsingErrorException
ParsingErrorException
public int getInt() throws ParsingErrorException
ParsingErrorException
public float getFloat() throws ParsingErrorException
ParsingErrorException
public java.lang.String getFilename()
public java.lang.String getString() throws ParsingErrorException
ParsingErrorException
public void getVerts(float[] ar, int num) throws ParsingErrorException
ParsingErrorException
public int getShortInt() throws ParsingErrorException
ParsingErrorException
public int getMarker()
public int read() throws java.io.IOException
read
in class java.io.BufferedInputStream
java.io.IOException
public int read(byte[] buffer, int offset, int count) throws java.io.IOException
read
in class java.io.BufferedInputStream
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |