Freigeben über


StreamTokenizer.Ttype Property

Definition

After a call to the nextToken method, this field contains the type of the token just read.

[Android.Runtime.Register("ttype")]
public Java.IO.TokenType Ttype { get; set; }
[<Android.Runtime.Register("ttype")>]
member this.Ttype : Java.IO.TokenType with get, set

Property Value

Attributes

Remarks

After a call to the nextToken method, this field contains the type of the token just read. For a single character token, its value is the single character, converted to an integer. For a quoted string token, its value is the quote character. Otherwise, its value is one of the following: <ul> <li>TT_WORD indicates that the token is a word. <li>TT_NUMBER indicates that the token is a number. <li>TT_EOL indicates that the end of line has been read. The field can only have this value if the eolIsSignificant method has been called with the argument true. <li>TT_EOF indicates that the end of the input stream has been reached. </ul>

The initial value of this field is -4.

Java documentation for java.io.StreamTokenizer.ttype.

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