public class FileTokenizer
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
FileTokenizer(Stream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasMoreTokens() |
void |
ignoreLine()
Ignore the line of the last token read
|
void |
ignoreToken()
Ignore (skip) a token
|
boolean |
isOpened() |
float |
nextFloat() |
int |
nextInt() |
java.lang.String |
nextString() |
java.lang.String |
nextStringWithSpace(java.lang.String token)
Read a String delimited by '"' character.
|
void |
open() |
public FileTokenizer(Stream stream)
public final void open()
throws java.io.IOException
java.io.IOExceptionpublic final boolean isOpened()
public final void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic final boolean hasMoreTokens()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String nextString()
throws java.io.IOException
java.io.IOExceptionpublic final java.lang.String nextStringWithSpace(java.lang.String token)
throws java.io.IOException
token - token to prepend on the readingjava.io.IOExceptionpublic final int nextInt()
throws java.io.IOException
java.io.IOExceptionpublic final float nextFloat()
throws java.io.IOException
java.io.IOExceptionpublic final void ignoreToken()
throws java.io.IOException
java.io.IOExceptionpublic final void ignoreLine()
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com