|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.web3d.vrml.sav.InputSource
public class InputSource
Representation of an input stream of bytes to the reader.
| Constructor Summary | |
|---|---|
InputSource(java.io.File file)
Create an input source representing the given file. |
|
InputSource(java.lang.String uri)
Create an input source representation of the given URI string. |
|
InputSource(java.lang.String urlBase,
java.io.InputStream is)
Create an input source from the input stream and the defined base URL. |
|
InputSource(java.lang.String urlBase,
java.io.InputStream is,
java.lang.String fullUrl)
Create an input source from the input stream and the defined base URL with the option of providing a known full URL. |
|
InputSource(java.lang.String urlBase,
java.io.Reader rdr)
Create an input source from the reader and the defined base URL. |
|
InputSource(java.lang.String urlBase,
java.io.Reader rdr,
java.lang.String fullUrl)
Create an input source from the reader and the defined base URL with with the option of providing a known full URL. |
|
InputSource(java.net.URL url)
Create an input source representing the given URL. |
|
InputSource(org.ietf.uri.URL url)
Create an input source representing the given URL. |
|
| Method Summary | |
|---|---|
void |
close()
Close the underlying stream used by the source. |
java.lang.String |
getBaseURL()
Get the base URL of this stream. |
java.io.InputStream |
getByteStream()
Get a stream of raw bytes from the source. |
java.io.Reader |
getCharacterStream()
Get a stream of the characters from the source. |
java.lang.String |
getContentType()
Get the content type of this source. |
java.lang.String |
getEncoding()
Get the encoding, binary or string of the underlying stream. |
java.lang.String |
getURL()
Get the fully qualified URL string to the source. |
void |
setContentType(java.lang.String type)
Set the content type of this source. |
void |
setProgressListener(org.ietf.uri.event.ProgressListener listener)
Set the progress listener. |
void |
setReadProgressListener(ReadProgressListener listener,
int updateSize)
Set the read progress listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputSource(java.lang.String uri)
uri - The URI to open.public InputSource(java.io.File file)
file - The file to be used as the sourcepublic InputSource(java.net.URL url)
url - The URL to usepublic InputSource(org.ietf.uri.URL url)
url - The URL to use
public InputSource(java.lang.String urlBase,
java.io.InputStream is)
urlBase - The name of the base URL for this streamis - The underlying stream to use
public InputSource(java.lang.String urlBase,
java.io.InputStream is,
java.lang.String fullUrl)
urlBase - The name of the base URL for this streamis - The underlying stream to usefullUrl - The fully qualified URL string
public InputSource(java.lang.String urlBase,
java.io.Reader rdr)
urlBase - The name of the base URL for this streamrdr - The underlying reader to use
public InputSource(java.lang.String urlBase,
java.io.Reader rdr,
java.lang.String fullUrl)
urlBase - The name of the base URL for this streamrdr - The underlying Reader to usefullUrl - The fully qualified URL string| Method Detail |
|---|
public java.lang.String getEncoding()
public java.io.Reader getCharacterStream()
throws java.io.IOException
java.io.IOException - An error opening the stream
public java.io.InputStream getByteStream()
throws java.io.IOException
java.io.IOException - An error opening the streampublic java.lang.String getBaseURL()
public java.lang.String getURL()
public void close()
throws java.io.IOException
java.io.IOException - An error closing the stream
public void setReadProgressListener(ReadProgressListener listener,
int updateSize)
listener - The progress listener.updateSize - The number of bytes before issuing an update message.public void setProgressListener(org.ietf.uri.event.ProgressListener listener)
listener - The progress listener.public void setContentType(java.lang.String type)
public java.lang.String getContentType()
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||