Movatterモバイル変換
[0]ホーム
JavaScript is disabled on your browser.
JavaScript is disabled on your browser.
All Implemented Interfaces: Closeable ,AutoCloseable ,Readable Direct Known Subclasses: PushbackReader public abstract classFilterReader extendsReader Abstract class for reading filtered character streams. The abstract classFilterReader itself provides default methods that pass all requests to the contained stream. Subclasses ofFilterReader should override some of these methods and may also provide additional methods and fields.
Since: 1.1 Field Summary Fields Modifier and Type Field Description protectedReader in The underlying character-input stream.
Constructor Summary Constructors Modifier Constructor Description protectedFilterReader (Reader in)Creates a new filtered reader.
Method Summary All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmark (int readAheadLimit)Marks the present position in the stream.
booleanmarkSupported ()Tells whether this stream supports the mark() operation.
intread ()Reads a single character.
intread (char[] cbuf, int off, int len)Reads characters into a portion of an array.
booleanready ()Tells whether this stream is ready to be read.
voidreset ()Resets the stream.
longskip (long n)Skips characters.
Methods declared in class java.lang.Object clone ,equals ,finalize ,getClass ,hashCode ,notify ,notifyAll ,toString ,wait ,wait ,wait Method Detail read public int read(char[] cbuf, int off, int len) throwsIOException Reads characters into a portion of an array.
Specified by: read in class Reader Parameters: cbuf - Destination bufferoff - Offset at which to start storing characterslen - Maximum number of characters to readReturns: The number of characters read, or -1 if the end of the stream has been reached Throws: IOException - If an I/O error occursIndexOutOfBoundsException - If an I/O error occursJavaScript is disabled on your browser.
Report a bug or suggest an enhancement For further API reference and developer documentation see theJava SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.Copyright © 1993, 2025, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject tolicense terms and thedocumentation redistribution policy .
Scripting on this page tracks web page traffic, but does not change the content in any way.
[8]ページ先頭