Overview | Package | Class | Tree | Index | Help NetCharts Pro (Applets) 7.0
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

netcharts.util
Class NFTokenInput

java.lang.Object
  |
  +--netcharts.util.NFTokenInput

public class NFTokenInput
This class serves to handle all input processing for token processing. This separation allows extensions to handle differences in JVM I/O processing, while still allowing the token and parser classes to work under old JVMs.


Constructor Summary
NFTokenInput()
          Create a new object for this class.
 
Method Summary
void close()
          Clear all input information, effectively closing the input
int nextChar()
          Returns the next character from the current input.
void pushBack(int cval)
          Push the given character back into the input.
static void setFontEncoding(java.lang.String encoding)
          Set the font encoding to be used for all subsequent input readers (JVM1.1 & higher) that are created using the setInput() method.
void setInput(java.io.BufferedInputStream is)
          Use the given stream as input, ignoring any previous input.
void setInput(java.io.InputStream is)
          Use the given stream as input, ignoring any previous input.
void setInput(java.io.InputStream is, boolean useBufferedStream)
          Use the given stream as input, ignoring any previous input.
void setInput(java.lang.String str)
          Use the given string as input, ignoring any previous input.
void setInput(java.lang.StringBuffer buf)
          Use the given string buffer as input, ignoring any previous input.
 

Constructor Detail

NFTokenInput

public NFTokenInput()
Create a new object for this class. One of the setInput() methods must be called before input can be read from the new object.
Method Detail

setFontEncoding

public static void setFontEncoding(java.lang.String encoding)
Set the font encoding to be used for all subsequent input readers (JVM1.1 & higher) that are created using the setInput() method. NOTE: This is a static property and will therefore affect all readers created subsequently by all NFTokenInput11 objects.
Parameters:
encoding - The font encoding.

setInput

public void setInput(java.lang.String str)
Use the given string as input, ignoring any previous input.
Parameters:
str - The string to use as input.

setInput

public void setInput(java.lang.StringBuffer buf)
Use the given string buffer as input, ignoring any previous input.
Parameters:
buf - The stringbuffer to use as input.

setInput

public void setInput(java.io.InputStream is)
Use the given stream as input, ignoring any previous input.
Parameters:
is - The stream to use as input.

setInput

public void setInput(java.io.BufferedInputStream is)
Use the given stream as input, ignoring any previous input.
Parameters:
is - The stream to use as input.

setInput

public void setInput(java.io.InputStream is,
                     boolean useBufferedStream)
Use the given stream as input, ignoring any previous input.
Parameters:
is - The stream to use as input.
useBufferedStream - If true, create a buffered stream on top of the stream.

nextChar

public int nextChar()
Returns the next character from the current input. If no characters remain or if no input has been specified, EOF (-1) is returned.
Returns:
The next character.

pushBack

public void pushBack(int cval)
Push the given character back into the input. Only one character may be pushed back at a time. That is, if multiple calls to this method are made before calling nextChar(), then only the last character pushed back will be returned.
Parameters:
cval - The character to push back.

close

public void close()
Clear all input information, effectively closing the input

Overview | Package | Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD


Visual Mining, Inc.
2099 Gaither Grove Rd.
Suite 220
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2010
All Rights Reserved.

NetCharts ProTM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders.

Last Modified: Jun 29, 2010