|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
public interface DataLocation
Describes the origin of source or object data, such as files, URLs, or archive entries. Locations can open an input stream and provide detailed information about further streams that are supported by the location. It supports output streams, readers and writers in case these are feasible.
| Method Summary | |
|---|---|
java.io.InputStream |
getInputStream()
returns an input stream for the content of the location |
java.io.OutputStream |
getOutputStream()
returns an output stream for manipulating the content of the location |
java.io.Reader |
getReader()
returns a reader for the according data content. |
java.lang.String |
getType()
returns a string representation of the locationType |
java.io.Writer |
getWriter()
returns a writer for the according data content. |
boolean |
hasReaderSupport()
determines whether the data source provides a reader interface. |
boolean |
hasWriterSupport()
determines whether the data source provides a writer interface. |
void |
inputStreamClosed()
tells the location, that the earlier created input stream has been closed |
boolean |
isWritable()
determines whether or not the data location can be overwritten. |
void |
outputStreamClosed()
tells the location, that the earlier created output stream has been closed |
void |
readerClosed()
tells the location, that the earlier created reader has been closed |
java.lang.String |
toString()
returns a URL-like string representation of the location in the form " |
void |
writerClosed()
tells the location, that the earlier created writer has been closed |
| Method Detail |
|---|
java.lang.String getType()
java.lang.String toString()
toString in class java.lang.Objectboolean hasReaderSupport()
java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOException - thrown if an error occurs with retrieving the input stream
from the according data object.void inputStreamClosed()
java.io.Reader getReader()
throws java.io.IOException
java.io.IOException - thrown if an error occurs with retrieving the reader or
the underlying input stream from the according data
object.void readerClosed()
boolean isWritable()
boolean hasWriterSupport()
java.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOException - thrown if an error occurs with retrieving the output
stream from the according data object.void outputStreamClosed()
java.io.Writer getWriter()
throws java.io.IOException
java.io.IOException - thrown if an error occurs with retrieving the writer or
the underlying output stream from the according data
object.void writerClosed()
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||