public class URLDataLocation extends java.lang.Object implements DataLocation
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOCATION_TYPE_FILE |
private java.net.URL |
url |
| Constructor and Description |
|---|
URLDataLocation(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream()
return the URL's input stream
|
java.io.OutputStream |
getOutputStream() |
java.io.Reader |
getReader() |
java.lang.String |
getType() |
java.io.Writer |
getWriter() |
boolean |
hasReaderSupport() |
boolean |
hasWriterSupport() |
void |
inputStreamClosed() |
boolean |
isWritable() |
void |
outputStreamClosed() |
void |
readerClosed() |
java.lang.String |
toString() |
void |
writerClosed() |
private java.net.URL url
public static final java.lang.String LOCATION_TYPE_FILE
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface DataLocationjava.io.IOExceptionDataLocation.getInputStream()public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface DataLocationjava.lang.UnsupportedOperationException - alwaysjava.io.IOExceptionDataLocation.getOutputStream()public java.io.Writer getWriter()
throws java.io.IOException
getWriter in interface DataLocationjava.lang.UnsupportedOperationException - alwaysjava.io.IOExceptionDataLocation.getWriter()public java.io.Reader getReader()
throws java.io.IOException
getReader in interface DataLocationjava.io.IOExceptionpublic java.lang.String getType()
getType in interface DataLocationpublic java.lang.String toString()
toString in interface DataLocationtoString in class java.lang.Objectpublic boolean hasReaderSupport()
hasReaderSupport in interface DataLocationpublic boolean hasWriterSupport()
hasWriterSupport in interface DataLocationpublic boolean isWritable()
isWritable in interface DataLocationpublic void inputStreamClosed()
inputStreamClosed in interface DataLocationpublic void outputStreamClosed()
outputStreamClosed in interface DataLocationpublic void readerClosed()
readerClosed in interface DataLocationpublic void writerClosed()
writerClosed in interface DataLocation