public class SpecDataLocation extends java.lang.Object implements DataLocation
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
location |
(package private) java.lang.String |
type |
static DataLocation |
UNKNOWN_LOCATION |
Constructor and Description |
---|
SpecDataLocation(java.lang.String type,
java.lang.String location) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream() |
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() |
public static final DataLocation UNKNOWN_LOCATION
java.lang.String type
java.lang.String location
public SpecDataLocation(java.lang.String type, java.lang.String location)
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface DataLocation
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface DataLocation
java.io.IOException
public java.io.Reader getReader() throws java.io.IOException
getReader
in interface DataLocation
java.io.IOException
public java.lang.String getType()
getType
in interface DataLocation
public java.io.Writer getWriter() throws java.io.IOException
getWriter
in interface DataLocation
java.io.IOException
public boolean hasReaderSupport()
hasReaderSupport
in interface DataLocation
public boolean hasWriterSupport()
hasWriterSupport
in interface DataLocation
public void inputStreamClosed()
inputStreamClosed
in interface DataLocation
public boolean isWritable()
isWritable
in interface DataLocation
public void outputStreamClosed()
outputStreamClosed
in interface DataLocation
public void readerClosed()
readerClosed
in interface DataLocation
public void writerClosed()
writerClosed
in interface DataLocation
public java.lang.String toString()
toString
in interface DataLocation
toString
in class java.lang.Object