anvil.parser
Class StreamInputSource
java.lang.Object
|
+--anvil.parser.StreamInputSource
- All Implemented Interfaces:
- InputSource
- Direct Known Subclasses:
- JarContainer.JarResource
- public class StreamInputSource
- extends java.lang.Object
- implements InputSource
class StreamInputSource
|
Field Summary |
protected java.io.InputStream |
_input
|
protected java.net.URL |
_url
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_input
protected java.io.InputStream _input
_url
protected java.net.URL _url
StreamInputSource
public StreamInputSource(java.io.InputStream input)
StreamInputSource
public StreamInputSource(java.io.InputStream input,
java.net.URL url)
getURL
public java.net.URL getURL()
- Specified by:
getURL in interface InputSource
getLastModified
public long getLastModified()
- Specified by:
getLastModified in interface InputSource
getLength
public int getLength()
- Specified by:
getLength in interface InputSource
getCharacterEncoding
public java.nio.charset.Charset getCharacterEncoding()
- Specified by:
getCharacterEncoding in interface InputSource
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Specified by:
getInputStream in interface InputSource
java.io.IOException
load
public java.nio.ByteBuffer load()
throws java.io.IOException
- Specified by:
load in interface InputSource
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close in interface InputSource
java.io.IOException