このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XTextInputStream
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: io ::

interface XTextInputStream
Base Interfaces
XTextInputStreamXInputStream

XInputStream
(言及/関連d interface's 要約:)
This is the basic interface to read data from a stream.
Description
Interface to read strings from a stream.

This interfaces 許すs to read strings seperated by delimiters and to read lines. The character encoding to be used can be 始める,決める by setEncoding(). Default encoding is "utf8".


Methods' 要約
readLine reads text until a line break (CR, LF, or CR/LF) or EOF is 設立する and returns it as string (without CR, LF).  
readString reads text until one of the given delimiter characters or EOF is 設立する and returns it as string (without delimiter).  
isEOF Returns the EOF status.  
setEncoding 始める,決めるs character encoding.  
Methods' 詳細(に述べる)s
readLine
string
readLine()
raises( IOException );

Description
reads text until a line break (CR, LF, or CR/LF) or EOF is 設立する and returns it as string (without CR, LF).

The read characters are 変えるd によれば the encoding defined by setEncoding. If EOF is already reached before calling this method an empty string is returned.

See also
setEncoding, isEOF
readString
string
readString( [in] sequence< char >  Delimiters,
[in] boolean  bRemoveDelimiter )
raises( IOException );

Description
reads text until one of the given delimiter characters or EOF is 設立する and returns it as string (without delimiter).

Important: CR/LF is not used as default delimiter! So if no delimiter is defined or 非,不,無 of the delimiters is 設立する, the stream will be read to EOF. The read characters are 変えるd によれば the encoding defined by setEncoding. If EOF is already reached before calling this method an empty string is returned.

See also
setEncoding, isEOF
isEOF
boolean
isEOF()
raises( IOException );

Description
Returns the EOF status.

This method has to be used to (悪事,秘密などを)発見する if the end of the stream is reached.

Important: This cannot be (悪事,秘密などを)発見するd by asking for an empty string because that can be a valid return value of readLine() (if the line is empty) and readString() (if a delimiter is 直接/まっすぐに followed by the next one).

Returns
true, if the end of とじ込み/提出する is reached, so that no next string can be read. 誤った さもなければ
setEncoding
無効の
setEncoding( [in] string  Encoding );

Description
始める,決めるs character encoding.
Parameter Encoding
始める,決めるs the character encoding that should be used. The character encoding 指名するs 言及する to the 文書 http://www.iana.org/assignments/character-始める,決めるs. Which character 始める,決めるs are supported depends on the 実施.
最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.