|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jreality.reader.Readers
public final class Readers
Entry point to load a jReality SceneGraph from some sort of resource.
Method Summary | |
---|---|
static java.lang.String |
findFormat(java.lang.String resourceName)
|
static SceneReader |
findReader(java.lang.String format)
returns a reader for the given format if available - null if not. |
static SceneGraphComponent |
read(java.io.File file)
reads the given file with the matching reader for the file ending. |
static SceneGraphComponent |
read(Input input)
determines the format of the given input depending on the file ending of the URL. |
static SceneGraphComponent |
read(SceneReader reader,
Input input)
Reads the scene from the given input with the given SceneReader. |
static SceneGraphComponent |
read(java.lang.String format,
Input input)
Reads the scene from the given input with the SceneReader for the given format. |
static SceneGraphComponent |
read(java.net.URL url)
reads the given url with the matching reader for the file ending. |
static void |
registerFileEndings(java.lang.String format,
java.lang.String... fileEndings)
Register a file ending for a format. |
static void |
registerReader(java.lang.String format,
java.lang.Class<? extends SceneReader> reader)
Register a reader class to read a certain format. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void registerFileEndings(java.lang.String format, java.lang.String... fileEndings)
fileEnding
- the file ending.format
- the format.public static void registerReader(java.lang.String format, java.lang.Class<? extends SceneReader> reader)
format
- the formatreader
- the reader classpublic static SceneReader findReader(java.lang.String format)
format
- String representation for the format to read.
public static SceneGraphComponent read(SceneReader reader, Input input) throws java.io.IOException
reader
- the SceneReader to read with.input
- the Input to read with the given SceneReader.
java.io.IOException
public static SceneGraphComponent read(java.lang.String format, Input input) throws java.io.IOException
format
- the format of the given input.input
- the Input to read with the SceneReader for the given format.
java.io.IOException
public static SceneGraphComponent read(java.io.File file) throws java.io.IOException
file
- the file to read.
java.io.IOException
public static SceneGraphComponent read(java.net.URL url) throws java.io.IOException
url
- the url to read.
java.io.IOException
public static SceneGraphComponent read(Input input) throws java.io.IOException
input
-
java.io.IOException
public static java.lang.String findFormat(java.lang.String resourceName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |