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