JavaScript is disabled on your browser.
JavaScript is disabled on your browser.
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method
Description
void
close ()
Closes the stream and releases any system resources associated with
it.
Charset
getCharset ()
Charset used by this reader
URL
getURL ()
URL of this reader
int
read (char[] cbuf,
int off,
int len)
Reads characters into a portion of an array.
Methods inherited from 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)
throws IOException
Description copied from class: Reader
Reads characters into a portion of an array. This method will block
until some input is available, an I/O error occurs, or the end of the
stream is reached.
Specified by:
read
in class Reader
Parameters:
cbuf
- Destination buffer
off
- Offset at which to start storing characters
len
- Maximum number of characters to read
Returns:
The number of characters read, or -1 if the end of the
stream has been reached
Throws:
IOException
- If an I/O error occurs
close
public void close()
throws IOException
Description copied from class: Reader
Closes the stream and releases any system resources associated with
it. Once the stream has been closed, further read(), ready(),
mark(), reset(), or skip() invocations will throw an IOException.
Closing a previously closed stream has no effect.
Specified by:
close
in interface AutoCloseable
Specified by:
close
in interface Closeable
Specified by:
close
in class Reader
Throws:
IOException
- If an I/O error occurs
getURL
public URL getURL()
URL of this reader
Returns:
the URL from which this reader reads.
JavaScript is disabled on your browser.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java 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, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .
Scripting on this page tracks web page traffic, but does not change the content in any way.