edu.jhu.ece.iacl.jist.io
Class SurfaceVrmlReaderWriter
java.lang.Object
edu.jhu.ece.iacl.jist.io.FileReaderWriter<EmbeddedSurface>
edu.jhu.ece.iacl.jist.io.SurfaceReaderWriter
edu.jhu.ece.iacl.jist.io.SurfaceVrmlReaderWriter
public class SurfaceVrmlReaderWriter
- extends SurfaceReaderWriter
The Class SurfaceVrmlReaderWriter.
Method Summary |
static SurfaceVrmlReaderWriter |
getInstance()
Gets the single instance of SurfaceVrmlReaderWriter. |
protected EmbeddedSurface |
readObject(java.io.File f)
Read object. |
protected boolean |
writeObject(EmbeddedSurface mesh,
java.io.File f)
writeObject should be overwritten by all extending classes
This method is protected because users should call write()
From there, other reader/writer methods (including this one)
are called as needed. |
Methods inherited from class edu.jhu.ece.iacl.jist.io.FileReaderWriter |
accept, getExtensionFilter, getFileExtension, getFileExtension, getFileName, getFileName, getFileName, getFullFileName, read, setExtensionFilter, setFileName, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
readerWriter
protected static final SurfaceVrmlReaderWriter readerWriter
- The Constant readerWriter.
SurfaceVrmlReaderWriter
public SurfaceVrmlReaderWriter()
- Instantiates a new surface vrml reader writer.
getInstance
public static SurfaceVrmlReaderWriter getInstance()
- Gets the single instance of SurfaceVrmlReaderWriter.
- Returns:
- single instance of SurfaceVrmlReaderWriter
readObject
protected EmbeddedSurface readObject(java.io.File f)
- Description copied from class:
FileReaderWriter
- Read object.
- Overrides:
readObject
in class SurfaceReaderWriter
- Parameters:
f
- the f
- Returns:
- the t
writeObject
protected boolean writeObject(EmbeddedSurface mesh,
java.io.File f)
- Description copied from class:
FileReaderWriter
- writeObject should be overwritten by all extending classes
This method is protected because users should call write()
From there, other reader/writer methods (including this one)
are called as needed.
- Overrides:
writeObject
in class SurfaceReaderWriter
- Parameters:
mesh
- The object being writtenf
- Where the file should be written
- Returns:
- true if successful, false otherwise