|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
@SASScope(value="ALL") @BinaryCompatibilityOnly public interface ViewerEntryInterface
The ViewerEntryInterface provides a mechanism for setting and getting the attributes of a viewer entry. In the MVA Publishing Framework, a viewer is a custom-written template that contains HTML tags for formatting result set package content for view-only transports, such as e-mail. The viewer file is applied to the package during package publishing. A viewer file is particularly useful for rendering a SAS data set in a tabular format for viewing in e-mail. Also, it is useful for streaming dynamic information in the form of a binary file or a URL for inclusion in an electronic newsletter format.
The viewer is not used for rendering purposes in the Java Publishing Framework, but viewer entries can be published and retrieved.
| Field Summary | |
|---|---|
static int |
HTML_VIEWER
|
static int |
TEXT_VIEWER
|
| Method Summary | |
|---|---|
abstract java.lang.String |
getEncoding()
Returns the encoding of viewer. |
abstract java.io.InputStream |
getInputStream()
Gets the input stream for the viewer entry. |
abstract java.io.InputStream |
getInputStream(java.lang.Object streamID)
Deprecated. Use getInputStream() which now supports remote input streams. |
abstract java.lang.String |
getMIMEType()
Returns the MIME type associated with this viewer entry. |
abstract java.lang.String |
getName()
Returns the name of the file. |
abstract java.io.Reader |
getReader()
Gets reader for this viewer entry. |
abstract java.io.Reader |
getReader(java.lang.Object readerID)
Deprecated. Use getReader() which now supports remote readers. |
abstract com.sas.io.RemoteInputStreamInterface |
getRemoteInputStream(java.lang.Object streamID)
Deprecated. Use getInputStream() which now supports remote input streams. |
abstract com.sas.io.RemoteReaderInterface |
getRemoteReader(java.lang.Object readerID)
Deprecated. Use getReader() which now supports remote readers. |
abstract int |
getViewerType()
Returns the type of viewer, HTML or text. |
abstract 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 |
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 viewer encoding. |
abstract void |
setMIMEType(java.lang.String mimeType)
Sets the MIME type associated with this viewer file. |
| 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 |
| Field Detail |
|---|
static final int HTML_VIEWER
static final int TEXT_VIEWER
| Method Detail |
|---|
java.lang.String getEncoding()
throws java.rmi.RemoteException,
TransportException
String The encoding of the viewer; can be null.
TransportException - If the transport encounters an error
getting the encoding.
java.rmi.RemoteException - If a network anomaly is encountered.
java.lang.IllegalStateException - If the package is already closed.
void setEncoding(java.lang.String encoding)
throws java.lang.IllegalStateException,
java.rmi.RemoteException
If this is a text viewer, the encoding is used when constructing the Reader that is returned by getReader and getRemoteReader, and it is used to publish the viewer.
If this is an HTML viewer, the encoding of the HTML viewer is published as metadata along with the viewer entry. When published, the HTML viewer is parsed. If the charset= attribute is specified in the META tag, this encoding value will be used. If not found, the value set using this method will be used. Otherwise, a default encoding of ISO-8859-1 will be set.
encoding - The encoding for this viewer.
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
int getViewerType()
throws TransportException,
java.rmi.RemoteException
int The type of viewer. Supported
viewer types include HTML_VIEWER or
TEXT_VIEWER.
TransportException - If the transport encounters an error
getting the viewer type.
java.rmi.RemoteException - If a network anomaly is encountered
java.lang.IllegalStateException - If the package is already closed.
java.lang.String getName()
throws java.rmi.RemoteException,
TransportException
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 is already closed.
java.lang.String getMIMEType()
throws java.rmi.RemoteException,
TransportException
String The MIME type associated with this file;
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 is already closed.
void setMIMEType(java.lang.String mimeType)
throws java.lang.IllegalStateException,
java.rmi.RemoteException
mimeType - The MIME type associated with this viewer 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.InputStream getInputStream(java.lang.Object streamID)
throws java.lang.IllegalStateException,
java.rmi.UnmarshalException,
java.io.IOException,
java.rmi.RemoteException
getInputStream() which now supports remote input streams.
getRemoteInputStream(java.lang.Object) in order to obtain the input stream.
getInputStream in interface com.sas.io.InputStreamProviderInterfacestreamID - The stream description should be null; it will be ignored.
java.lang.IllegalStateException - If invoked on a text viewer or if the package
containing this entry is already closed.
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.
com.sas.io.RemoteInputStreamInterface getRemoteInputStream(java.lang.Object streamID)
throws java.lang.IllegalStateException,
java.io.IOException,
java.rmi.RemoteException
getInputStream() which now supports remote input streams.
getRemoteInputStream in interface com.sas.io.InputStreamProviderInterfacestreamID - The stream description should be null; it will be ignored.
RemoteInputStream The remote input stream that can
be used for reading the contents of this viewer entry.
java.lang.IllegalStateException - If invoked on a text viewer or if the package
containing this entry is already closed.
java.io.IOException - If an error occurs constructing the remote input stream.
java.rmi.RemoteException - If a network anomaly is encountered.
java.io.Reader getReader(java.lang.Object readerID)
throws java.lang.IllegalStateException,
java.rmi.UnmarshalException,
java.io.IOException,
java.rmi.RemoteException
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.lang.IllegalStateException - If invoked on an html viewer
java.rmi.UnmarshalException - If invoked on a remote object.
java.io.IOException - If an error occurs constructing the reader.
java.rmi.RemoteException - If a network anomaly is encountere.
com.sas.io.RemoteReaderInterface getRemoteReader(java.lang.Object readerID)
throws java.lang.IllegalStateException,
java.io.IOException,
java.rmi.RemoteException
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 viewer entry.
java.lang.IllegalStateException - If invoked on an html viewer
java.io.IOException - If an error occurs constructing the remote reader.
java.rmi.RemoteException - If a network anomaly is encountered.
java.lang.Object hasReader()
throws java.rmi.UnmarshalException,
java.rmi.RemoteException
getReader(java.lang.Object) will succeed.
See getReader(java.lang.Object) to
determine whether this method should be used.
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.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.InputStreamProviderInterfaceObject 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.lang.IllegalStateException - if this result package has already been closed.
java.io.InputStream getInputStream()
throws java.lang.IllegalStateException,
java.io.IOException,
java.rmi.RemoteException
java.lang.IllegalStateException - If invoked on a text viewer or if the package
containing this entry is already closed.
java.io.IOException - If an error occurs constructing the input stream.
java.rmi.RemoteException - If a network anomaly is encountered.
java.io.Reader getReader()
throws java.lang.IllegalStateException,
java.io.IOException,
java.rmi.RemoteException
java.lang.IllegalStateException - If invoked on an html viewer
java.io.IOException - If an error occurs constructing the reader.
java.rmi.RemoteException - If a network anomaly is encountere.
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||