org.vrspace.client
Class VrmlParser
java.lang.Object
java.util.Observable
org.vrspace.client.VrmlParser
- Direct Known Subclasses:
- VrmlUploader.URLParser
- public class VrmlParser
- extends java.util.Observable
Method Summary |
protected void |
copyURL(java.lang.String path,
java.lang.String destPath,
java.io.OutputStream out)
Copy file/url to |
protected void |
copyURL(java.net.URL url)
Copy to new location. |
static void |
main(java.lang.String[] args)
|
void |
parseFile(java.lang.String fileName)
Parses vrml97 file
Every root Transform is stored in separate file, named by DEF name ie
DEF T1 Transform {...} -> output/T1.wrl
by calling write( String destFile );
Every "url" is processed and if it is a file on a local filesystem,
copied with copyURL( URL ) |
void |
write(java.lang.String destFile)
Writes the parsed output to |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outputDir
public java.lang.String outputDir
VrmlParser
public VrmlParser()
parseFile
public void parseFile(java.lang.String fileName)
- Parses vrml97 file
Every root Transform is stored in separate file, named by DEF name ie
DEF T1 Transform {...} -> output/T1.wrl
by calling write( String destFile );
Every "url" is processed and if it is a file on a local filesystem,
copied with copyURL( URL )
copyURL
protected void copyURL(java.net.URL url)
throws java.io.IOException
- Copy to new location.
Determines destination, and calls copyURL( String path, String destpath )
This assumes that is a file on local filesystem (TODO)
- Throws:
java.io.IOException
copyURL
protected void copyURL(java.lang.String path,
java.lang.String destPath,
java.io.OutputStream out)
- Copy file/url to
write
public void write(java.lang.String destFile)
throws java.io.IOException
- Writes the parsed output to
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)