StreamTokenizer Constructors

Definition

Overloads

StreamTokenizer(Reader)

Create a tokenizer that parses the given character stream.

StreamTokenizer(Stream)
Obsolete.

Creates a stream tokenizer that parses the specified input stream.

StreamTokenizer(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

StreamTokenizer(Reader)

Create a tokenizer that parses the given character stream.

[Android.Runtime.Register(".ctor", "(Ljava/io/Reader;)V", "")]
public StreamTokenizer (Java.IO.Reader? r);
[<Android.Runtime.Register(".ctor", "(Ljava/io/Reader;)V", "")>]
new Java.IO.StreamTokenizer : Java.IO.Reader -> Java.IO.StreamTokenizer

Parameters

r
Reader

a Reader object providing the input stream.

Attributes

Remarks

Create a tokenizer that parses the given character stream.

Added in 1.1.

Java documentation for java.io.StreamTokenizer.StreamTokenizer(java.io.Reader).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

StreamTokenizer(Stream)

Caution

deprecated

Creates a stream tokenizer that parses the specified input stream.

[Android.Runtime.Register(".ctor", "(Ljava/io/InputStream;)V", "")]
[System.Obsolete("deprecated")]
public StreamTokenizer (System.IO.Stream? is);
[<Android.Runtime.Register(".ctor", "(Ljava/io/InputStream;)V", "")>]
[<System.Obsolete("deprecated")>]
new Java.IO.StreamTokenizer : System.IO.Stream -> Java.IO.StreamTokenizer

Parameters

is
Stream

an input stream.

Attributes

Exceptions

if is is null.

Remarks

Creates a stream tokenizer that parses the specified input stream. The stream tokenizer is initialized to the following default state: <ul> <li>All byte values 'A' through 'Z', 'a' through 'z', and '\u005Cu00A0' through '\u005Cu00FF' are considered to be alphabetic. <li>All byte values '\u005Cu0000' through '\u005Cu0020' are considered to be white space. <li>'/' is a comment character. <li>Single quote '\u005C'' and double quote '"' are string quote characters. <li>Numbers are parsed. <li>Ends of lines are treated as white space, not as separate tokens. <li>C-style and C++-style comments are not recognized. </ul>

This member is deprecated. As of JDK version 1.1, the preferred way to tokenize an input stream is to convert it into a character stream, for example: <blockquote><pre> Reader r = new BufferedReader(new InputStreamReader(is)); StreamTokenizer st = new StreamTokenizer(r); </pre></blockquote>

Java documentation for java.io.StreamTokenizer.StreamTokenizer(java.io.InputStream).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

StreamTokenizer(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected StreamTokenizer (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.IO.StreamTokenizer : nativeint * Android.Runtime.JniHandleOwnership -> Java.IO.StreamTokenizer

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to