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 DataLocationIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataLocationIOExceptionpublic Reader getReader() throws IOException
getReader in interface DataLocationIOExceptionpublic String getType()
getType in interface DataLocationpublic Writer getWriter() throws IOException
getWriter in interface DataLocationIOExceptionpublic boolean hasReaderSupport()
hasReaderSupport in interface DataLocationpublic boolean hasWriterSupport()
hasWriterSupport in interface DataLocationpublic void inputStreamClosed()
inputStreamClosed in interface DataLocationpublic boolean isWritable()
isWritable in interface DataLocationpublic void outputStreamClosed()
outputStreamClosed in interface DataLocationpublic void readerClosed()
readerClosed in interface DataLocationpublic void writerClosed()
writerClosed in interface DataLocationpublic String toString()
toString in interface DataLocationtoString in class Object