public class FileImporter extends Object
Contact: Don Brutzman (web.nps.navy.mil/~brutzman) brutzman@nps.navy.mil
ExampleFileFilter
Constructor and Description |
---|
FileImporter(String path)
Creates a new instance of FileIMporter
|
Modifier and Type | Method and Description |
---|---|
String |
getRelativeName()
Returns the relative name of the selected Source Attribute File.
|
String |
getSourceCharacteristicsXMLFilename()
Choose Source attribute file to import with .xml extension.
|
String |
importX3D()
Import a file to .x3d formatted file.
|
static void |
main(String[] args)
Main method of FileImporter class.
|
String |
stripHeaderAndFooter(String code)
Strip header and footer from the code.
|
String |
X3DToString(String path)
Converts X3D file to String.
|
public FileImporter(String path)
path
- String of the path to the file.public String importX3D()
public String getSourceCharacteristicsXMLFilename()
public String stripHeaderAndFooter(String code)
code
- The String value of code.public String X3DToString(String path)
path
- String of the full path.public String getRelativeName()
public static void main(String[] args)
args
- Not used.