public interface InputSource
Copyright 2006 Partner Software, Inc.
| Modifier and Type | Method and Description |
|---|---|
java.io.BufferedInputStream |
createBufferedInputStream()
Creates a buffered input stream to read from this source.
|
java.io.BufferedReader |
createBufferedReader()
Creates a buffered reader to read from this source.
|
java.io.InputStream |
createInputStream()
Creates an input stream to read from this source.
|
java.io.Reader |
createReader()
Creates a reader to read text from this source.
|
java.net.URI |
getAbsoluteURI()
Absolute URI for this source.
|
java.lang.String |
getName()
Simple name for this source.
|
java.net.URI |
getURI()
Relative URI for this source.
|
java.lang.String getName()
java.net.URI getURI()
java.net.URI getAbsoluteURI()
java.io.InputStream createInputStream()
throws java.io.IOException
InputStream.close() when you are done with it. Note that
this stream is NOT buffered. This is usually a bad thing, unless you are
doing your own buffering or doing a single bulk read. So, don't use this
method unless you know what you're doing - use
createBufferedInputStream() instead.java.io.IOException - if the read failsjava.io.BufferedInputStream createBufferedInputStream()
throws java.io.IOException
OutputStream.close() when you are done with it. This
stream is buffered. This is usually a good thing. So, generally use this
method instead of createInputStream() unless you know what
you're doing.java.io.IOException - if the read failsjava.io.Reader createReader()
throws java.io.IOException
Reader.close() when you
are done with it. Note that this reader is NOT buffered. This is usually
a bad thing, unless you are doing your own buffering or doing a single
bulk read. So, don't use this method unless you know what you're doing -
use createBufferedReader() instead.java.io.IOException - if the read failsjava.io.BufferedReader createBufferedReader()
throws java.io.IOException
Reader.close() when you are done with it. This reader is
buffered. This is usually a good thing. So, generally use this method
instead of createReader() unless you know what you're doing.java.io.IOException - if the read fails