|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HTMLFileInterface
The HTMLFileInterface provides a mechanism for setting and getting the attributes of a file contained within an HTML entry.
Files that implement HTMLFileInterface can be inserted into an HTML entry.
HTMLEntryInterface
is a container for various files that implement
HTMLFileInterface. Within MVA SAS, the ODS HTML statement generates
HTML files. The body file contains the results from the procedure. The
contents file is a table of contents that links to the body file. The pages file is
a table of pages that links to the body file.
The frame file is a frame that displays the table of contents, the table of pages and the body
file. The HTML entry provides a way to identify each of these files,
and encapsulate them into one entry.
The HTML file is limited to just one role. One file should be designated
as the main file for the HTML entry. The main file identifies which
file in the HTML entry should be used as the starting point when
browsing the HTML entry. The main file will have a
role of MAIN_BODY_FILE
or
MAIN_FRAME_FILE
. If a frame file exists, it
should be designated as the main file; otherwise, the body file should
be designated as the main file. All other files are considered companion files.
The companion files are any files other than the main HTML file. The
companion files can include, body, frame, contents and page files, as well
as any miscellaneous files (such as HTML, GIF, JPG) needed by the HTML entry.
Supported companion roles include FRAME_COMPANION
, BODY_COMPANION
,
PAGE_COMPANION
, CONTENTS_COMPANION
, MISC_COMPANION
.
HTMLEntryInterface
Field Summary | |
---|---|
static int |
BODY_COMPANION
A companion body file. |
static int |
CONTENTS_COMPANION
A companion contents file. |
static int |
FRAME_COMPANION
A companion frame file. |
static int |
MAIN_BODY_FILE
The main body file. |
static int |
MAIN_FRAME_FILE
The main frame file. |
static int |
MISC_COMPANION
A miscellaneous companion file. |
static int |
PAGE_COMPANION
A companion page file. |
Method Summary | |
---|---|
java.lang.String |
getEncoding()
Returns the encoding of the file. |
java.io.InputStream |
getInputStream()
Gets the input stream for this HTML or companion file. |
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 file. |
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. |
int |
getRole()
Returns the role of this file. |
java.lang.String |
getURL()
Returns the URL of the file. |
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 |
setEncoding(java.lang.String encoding)
Sets the file encoding. |
void |
setMIMEType(java.lang.String mimeType)
Sets the MIME type associated with this file. |
void |
setURL(java.lang.String url)
Sets the URL of the file. |
Field Detail |
---|
static final int MAIN_BODY_FILE
static final int BODY_COMPANION
static final int FRAME_COMPANION
static final int CONTENTS_COMPANION
static final int PAGE_COMPANION
static final int MISC_COMPANION
static final int MAIN_FRAME_FILE
Method Detail |
---|
java.lang.String getEncoding() throws java.rmi.RemoteException, java.lang.IllegalStateException
String
The file encoding.
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.lang.IllegalStateException, java.rmi.RemoteException
encoding
- The encoding of the 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.lang.String getURL() throws java.rmi.RemoteException, java.lang.IllegalStateException
String
The URL for the file.
java.rmi.RemoteException
- If a network anomaly is encountered.
java.lang.IllegalStateException
- If the package containing this entry is already closed.void setURL(java.lang.String url) throws java.lang.IllegalStateException, java.rmi.RemoteException
url
- The URL for the 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.lang.String getName() throws java.rmi.RemoteException, java.lang.IllegalStateException
String
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.int getRole() throws java.rmi.RemoteException, java.lang.IllegalStateException
int
The role of this file. Supported roles
include BODY_COMPANION
,
MAIN_BODY_FILE
, MAIN_FRAME_FILE
,
FRAME_COMPANION
, CONTENTS_COMPANION
,
PAGE_COMPANION
and MISC_COMPANION
.
java.rmi.RemoteException
- If a network anomaly is encountered.
java.lang.IllegalStateException
- If the package containing this entry is already closed.java.lang.String getMIMEType() throws java.rmi.RemoteException, java.lang.IllegalStateException
String
The MIME type associated with this file;
can be null
.
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 associated with this 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.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 this file.
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.lang.IllegalStateException
- if this result package has already been closed.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 |