|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.io.DataFileLocation
public class DataFileLocation
This class implements a data location that describes aJava source code file.
| Field Summary | |
|---|---|
static java.lang.String |
LOCATION_TYPE_FILE
|
| Constructor Summary | |
|---|---|
DataFileLocation(java.io.File f)
Creates a new data file location for the specified file. |
|
DataFileLocation(java.lang.String filename)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object ob)
|
java.io.File |
getFile()
|
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. |
int |
hashCode()
|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LOCATION_TYPE_FILE
| Constructor Detail |
|---|
public DataFileLocation(java.io.File f)
public DataFileLocation(java.lang.String filename)
| Method Detail |
|---|
public java.lang.String getType()
getType in interface DataLocationpublic java.io.File getFile()
public java.lang.String toString()
toString in interface DataLocationtoString in class java.lang.Objectpublic boolean hasReaderSupport()
hasReaderSupport in interface DataLocation
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface DataLocationjava.io.IOException - thrown if an error occurs with retrieving the input stream
from the according data object.public void inputStreamClosed()
inputStreamClosed in interface DataLocation
public java.io.Reader getReader()
throws java.io.IOException
getReader in interface DataLocationjava.io.IOException - thrown if an error occurs with retrieving the reader or
the underlying input stream from the according data
object.public void readerClosed()
readerClosed in interface DataLocationpublic boolean isWritable()
isWritable in interface DataLocationpublic boolean hasWriterSupport()
hasWriterSupport in interface DataLocation
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface DataLocationjava.io.IOException - thrown if an error occurs with retrieving the output
stream from the according data object.public void outputStreamClosed()
outputStreamClosed in interface DataLocation
public java.io.Writer getWriter()
throws java.io.IOException
getWriter in interface DataLocationjava.io.IOException - thrown if an error occurs with retrieving the writer or
the underlying output stream from the according data
object.public void writerClosed()
writerClosed in interface DataLocationpublic boolean equals(java.lang.Object ob)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||