|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BinaryFileEntryInterface
The BinaryFileEntryInterface provides a mechanism for setting and getting the attributes of a binary file entry.
Method Summary | |
---|---|
java.io.InputStream |
getInputStream()
Gets the input stream for this binary file entry. |
java.io.InputStream |
getInputStream(java.lang.Object streamID)
Deprecated. Use getInputStream() which now supports remote input streams. |
java.lang.String |
getMIMEType()
Returns the MIME type associated with this binary file entry. |
java.lang.String |
getName()
Returns the name of the file. |
com.sas.io.RemoteInputStreamInterface |
getRemoteInputStream(java.lang.Object streamID)
Deprecated. Use getInputStream() which now supports remote input streams. |
java.lang.Object |
hasInputStream()
Deprecated. this method no longer needed as getInputStream() will return an input stream that can be used in a remote environment |
void |
setMIMEType(java.lang.String mimeType)
Sets the MIME type for this binary file entry. |
Methods inherited from interface com.sas.services.publish.EntryInterface |
---|
getDescription, getNameValuePairs, getURL, isReadOnly, setDescription, setNameValuePairs |
Method Detail |
---|
java.lang.String getMIMEType() throws java.rmi.RemoteException, TransportException, java.lang.IllegalStateException
String
The MIME type associated with this
binary file entry; can be 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 binary 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.
java.rmi.RemoteException
- If a network anomaly is encountered.
java.lang.IllegalStateException
- If the package containing this entry is already closed.java.io.InputStream getInputStream(java.lang.Object streamID) throws java.rmi.UnmarshalException, java.io.IOException, java.rmi.RemoteException, java.lang.IllegalStateException
getInputStream()
which now supports remote input streams.
getRemoteInputStream(java.lang.Object)
in order to obtain the input stream.
getInputStream
in interface com.sas.io.InputStreamProviderInterface
streamID
- The stream 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.RemoteInputStreamInterface getRemoteInputStream(java.lang.Object streamID) throws java.io.IOException, java.rmi.RemoteException, java.lang.IllegalStateException
getInputStream()
which now supports remote input streams.
getRemoteInputStream
in interface com.sas.io.InputStreamProviderInterface
streamID
- The stream description should be null
; it will be ignored.
RemoteInputStream
The remote input stream that can
be used for reading the contents of the binary file entry.
java.io.IOException
- If an error occurs constructing the remote input stream.
java.rmi.RemoteException
- If a network anomaly is encountered.
java.lang.IllegalStateException
- If the package containing this entry is already closed.java.lang.Object hasInputStream() throws java.rmi.UnmarshalException, java.rmi.RemoteException
getInputStream(java.lang.Object)
will succeed.
See getInputStream(java.lang.Object)
to
determine whether this method should be used.
hasInputStream
in interface com.sas.io.InputStreamProviderInterface
Object
non-null if getInputStream(java.lang.Object) would succeed;
throws UnmarshalException if it would fail
java.rmi.UnmarshalException
- if invoked on a remote obejct
java.rmi.RemoteException
- if a network anomaly is encountered.java.io.InputStream getInputStream() 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.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |