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().

Variable Index

 o classLoader
 o in
 o shouldAbort

Constructor Index

 o ReadAction(InputStream)
 o ReadAction(String)
Create a ReadAction that reads from the string itself (not from any URL).
 o ReadAction(URL)
Create a ReadAction that reads from a URL.
 o ReadAction(URL, String)
Create a ReadAction that reads from a URL constructed of the specified urlContext and the URL string.

Method Index

 o beginReading()
 o clear()
 o getCurrentURL()
 o getFileLength()
 o getNameTable()
Return the name table.
 o getURLName()
If the ReadAction was created using a URL context and a string, this returns the string.
 o replaceNameTable(SceneReadNameTable)
Set a new name table and return the old one.

Variables

 o in
  public VRMLTokenizer in
 o classLoader
  public LRClassLoader classLoader
 o shouldAbort
  public boolean shouldAbort

Constructors

 o ReadAction
  public ReadAction(InputStream in)
 o ReadAction
  public ReadAction(URL u)
Create a ReadAction that reads from a URL. You must call beginReading() before reading from this ReadAction.
 o 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.
 o 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.

Methods

 o beginReading
  public void beginReading() throws MalformedURLException, IOException
 o getCurrentURL
  public URL getCurrentURL()
 o getURLName
  public String getURLName()
If the ReadAction was created using a URL context and a string, this returns the string. Otherwise, this returns null.
 o clear
  public void clear()
 o replaceNameTable
  public SceneReadNameTable replaceNameTable(SceneReadNameTable newNameTable)
Set a new name table and return the old one.
 o getNameTable
  public SceneReadNameTable getNameTable()
Return the name table.
 o getFileLength
  public int getFileLength()

All Packages  Class Hierarchy  This Package  Previous  Next  Index