|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.web3d.vrml.parser.VRMLParserUtils
public class VRMLParserUtils
General convenience utilities for handling parsing of VRML files.
| Method Summary | |
|---|---|
static java.lang.String[] |
parseFileHeader(java.io.InputStream stream)
Take the stream and strip the first line out of it to check that it is a vrml file. |
static java.lang.String[] |
parseFileHeader(java.io.Reader stream)
Take the reader and strip the first line out of it to check that it is a vrml file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String[] parseFileHeader(java.io.InputStream stream)
throws java.io.IOException
If the first two characters are not "#V" then this will terminate and not read the characters any further. The first two characters will be returned as a string in the first item and only in the array. The items in the array are built based on whitespace separators. That is, we don't explicitly look for these strings, but rather just give the next whitespace separated token. If we run out of tokens then any remaining items in the array are set to null.
stream - The input stream to source characters from.
java.io.IOException - Something happened while reading the stream
public static java.lang.String[] parseFileHeader(java.io.Reader stream)
throws java.io.IOException
stream - The input stream to source characters from.
java.io.IOException - Something happened while reading the streamparseFileHeader(java.io.InputStream)
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||