|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
@SASScope(value="ALL") @BinaryCompatibilityOnly public interface TextFileEntryInterface
The TextFileEntryInterface provides a mechanism for setting and getting the attributes of a text file entry.
| Method Summary | |
|---|---|
abstract java.lang.String |
getMIMEType()
Returns the MIME type associated with this text file entry. |
abstract java.lang.String |
getName()
Returns the name of the file. |
abstract java.io.Reader |
getReader()
Gets reader for the text file entry. |
abstract java.io.Reader |
getReader(int maxLineLength)
Gets reader for the text file entry. |
abstract java.io.Reader |
getReader(java.lang.Object readerID)
Deprecated. Use getReader() which now supports remote readers. |
abstract com.sas.io.RemoteReaderInterface |
getRemoteReader(java.lang.Object readerID)
Deprecated. Use getReader() which now supports remote readers. |
abstract java.lang.Object |
hasReader()
Deprecated. this method no longer needed as getReader() will return a reader that can be used in a remote environment |
abstract void |
setEncoding(java.lang.String encoding)
Sets the encoding of the text file. |
abstract void |
setMIMEType(java.lang.String mimeType)
Sets the MIME type for this text file entry. |
| Methods inherited from interface com.sas.services.publish.EntryInterface |
|---|
getDescription, getNameValuePairs, getURL, isReadOnly, setDescription, setNameValuePairs |
| Methods inherited from interface com.sas.entities.EntityKeyInterface |
|---|
getEntityKey, sameEntity, setEntityKey |
| Method Detail |
|---|
java.lang.String getMIMEType()
throws TransportException,
java.rmi.RemoteException,
java.lang.IllegalStateException
String The MIME type associated with this text file
entry; can be null.
TransportException - If the transport encounters an error getting
the MIME type.
java.rmi.RemoteException - If a network anomaly is encountered
java.lang.IllegalStateException - If the package containing this entry is
already closed.
void setMIMEType(java.lang.String mimeType)
throws java.lang.IllegalStateException,
java.rmi.RemoteException
mimeType - The MIME type to associate with this text file entry.
java.lang.IllegalStateException - If the entry is read only or if the package
containing this entry has already been closed.
java.rmi.RemoteException - If a network anomaly is encountered.
java.lang.String getName()
throws java.rmi.RemoteException,
TransportException,
java.lang.IllegalStateException
String The name of the file.
TransportException - If the transport encounters an error getting
the name of the file.
java.rmi.RemoteException - If a network anomaly is encountered.
java.lang.IllegalStateException - If the package containing this entry is
already closed.
void setEncoding(java.lang.String encoding)
throws java.rmi.RemoteException,
java.lang.IllegalStateException
encoding - The encoding for this text file.
java.lang.IllegalStateException - If the entry is read only or if the package
containing this entry has already been closed.
java.rmi.RemoteException - If a network anomaly is encountered
java.io.Reader getReader(java.lang.Object readerID)
throws java.rmi.UnmarshalException,
java.io.IOException,
java.rmi.RemoteException,
java.lang.IllegalStateException
getReader() which now supports remote readers.
getRemoteReader(java.lang.Object)
in order to obtain the reader.
getReader in interface com.sas.io.ReaderProviderInterfacereaderID - The reader description should be null; it
will be ignored.
java.rmi.UnmarshalException - If invoked on a remote object.
java.io.IOException - If an error occurs constructing the input stream.
java.rmi.RemoteException - If a network anomaly is encountered.
java.lang.IllegalStateException - If the package containing this entry is
already closed.
com.sas.io.RemoteReaderInterface getRemoteReader(java.lang.Object readerID)
throws java.io.IOException,
java.rmi.RemoteException,
java.lang.IllegalStateException
getReader() which now supports remote readers.
getRemoteReader in interface com.sas.io.ReaderProviderInterfacereaderID - The reader description should be null; it
will be ignored.
RemoteReader The remote reader that can be used for
reading the contents of the text file entry.
java.io.IOException - If an error occurs constructing the remote reader.
java.rmi.RemoteException - If a network anomaly is encountered.
java.lang.IllegalStateException - If the package containing this entry is
already closed.
java.lang.Object hasReader()
throws java.rmi.UnmarshalException,
java.rmi.RemoteException
hasReader in interface com.sas.io.ReaderProviderInterfacejava.rmi.UnmarshalException - if invoked on a remote object
java.rmi.RemoteException - if a network I/O error occurs.
java.io.Reader getReader()
throws java.io.IOException,
java.rmi.RemoteException,
java.lang.IllegalStateException
java.io.IOException - If an error occurs constructing the input stream.
java.rmi.RemoteException - If a network anomaly is encountered.
java.lang.IllegalStateException - If the package containing this entry is
already closed.
java.io.Reader getReader(int maxLineLength)
throws java.io.IOException,
java.rmi.RemoteException,
java.lang.IllegalStateException
The maximum line length parameter is only supported by the Requester transport; it will ignored by all other transports.
maxLineLength - the maximum length of any line that will be in the
file. This parameter is supported by the Requester transport; it
will be ignored by all other delivery transports.
java.io.IOException - If an error occurs constructing the input stream.
java.rmi.RemoteException - If a network anomaly is encountered.
java.lang.IllegalStateException - If the package containing this entry is
already closed.
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||