Class dnx.lr.ReadAction
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.lr.ReadAction
java.lang.Object
|
+----dnx.util.DNXObject
|
+----dnx.util.DNXInstancedObject
|
+----dnx.lr.Action
|
+----dnx.lr.ReadAction
- public class ReadAction
- extends Action
If you create a ReadAction from a URL or a URL context and string,
you must call beginReading() before reading anything. This call does
nothing if the ReadAction was created in some other fashion. If you
get a NullPointerException during reading, you probably forgot to call
beginReading().
-
classLoader
-
-
in
-
-
shouldAbort
-
-
ReadAction(InputStream)
-
-
ReadAction(String)
- Create a ReadAction that reads from the string itself (not from
any URL).
-
ReadAction(URL)
- Create a ReadAction that reads from a URL.
-
ReadAction(URL, String)
- Create a ReadAction that reads from a URL constructed of the
specified urlContext and the URL string.
-
beginReading()
-
-
clear()
-
-
getCurrentURL()
-
-
getFileLength()
-
-
getNameTable()
- Return the name table.
-
getURLName()
- If the ReadAction was created using a URL context and a string,
this returns the string.
-
replaceNameTable(SceneReadNameTable)
- Set a new name table and return the old one.
in
public VRMLTokenizer in
classLoader
public LRClassLoader classLoader
shouldAbort
public boolean shouldAbort
ReadAction
public ReadAction(InputStream in)
ReadAction
public ReadAction(URL u)
- Create a ReadAction that reads from a URL.
You must call beginReading() before reading from this ReadAction.
ReadAction
public ReadAction(URL urlContext,
String url)
- Create a ReadAction that reads from a URL constructed of the
specified urlContext and the URL string. You must call
beginReading() before reading from this ReadAction.
ReadAction
public ReadAction(String s)
- Create a ReadAction that reads from the string itself (not from
any URL). You must call beginReading() before reading from this
ReadAction.
beginReading
public void beginReading() throws MalformedURLException, IOException
getCurrentURL
public URL getCurrentURL()
getURLName
public String getURLName()
- If the ReadAction was created using a URL context and a string,
this returns the string. Otherwise, this returns null.
clear
public void clear()
replaceNameTable
public SceneReadNameTable replaceNameTable(SceneReadNameTable newNameTable)
- Set a new name table and return the old one.
getNameTable
public SceneReadNameTable getNameTable()
- Return the name table.
getFileLength
public int getFileLength()
All Packages Class Hierarchy This Package Previous Next Index