|
Oracle Reports Java API Reference 10g Release 2 (10.1.2) B14049-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the CacheItem interface used by the Oracle Reports Cache class.
Method Summary | |
void |
addContent(java.lang.String filename, byte[] bytes, short format, boolean main) Adds a file and its content to the CacheItem. |
void |
addFile(java.lang.String filename, short format, boolean main) Adds a cache file to the CacheItem. |
void |
clear() Clears the content of the CacheItem and sets its state to invalid. |
java.lang.String[] |
getAdditionalFiles(oracle.reports.ShortArrayHolder formats, oracle.reports.LongLongArrayHolder sizes, boolean full) Returns additional file names and formats. |
java.io.InputStream |
getContent(java.lang.String filename) Returns file content from the cache. |
long |
getExpiration() Returns the expiration time for the CacheItem. |
long |
getFinishedTime() Returns the completed time of the CacheItem. |
Job |
getJob() Returns the job owning this CacheItem. |
java.lang.String |
getKey() Returns the Item Key. |
java.lang.String |
getMainFile(org.omg.CORBA.ShortHolder format, org.omg.CORBA.LongHolder size, boolean full) Returns the main file name and format. |
long |
getSize() Returns the item size expressed in bytes. |
boolean |
isContentReady() Checks if the content for the CacheItem is ready to be used. |
boolean |
isExpired() Checks if the CacheItem has expired. |
boolean |
isValid() Checks if the CacheItem is valid to use. |
void |
setContentReady() Specifies whether the content for the CacheItem is ready to be used. |
void |
setCustomProperties(java.util.Properties props) Sets custom properties for the CacheItem. |
void |
setExpiration(long expiration) Sets the expiration time for the CacheItem. |
void |
setFinishedTime(long finishedTime) Sets the completion time for the CacheItem. |
void |
setJob(Job job) Sets the associated job for this CacheItem. |
Method Detail |
public java.lang.String getKey()
public Job getJob()
public void setJob(Job job)
job
- Associates the job object with the CacheItem.public void setExpiration(long expiration) throws oracle.reports.RWException
expiration
- Time in milliseconds. If a CacheItem has no expiration set, the item will never expire and it will only become invalid when the cache system uses FIFO to clear the item when it is full, or when it is intentionally cleared.public long getExpiration()
public boolean isExpired()
public long getFinishedTime()
public void setFinishedTime(long finishedTime) throws oracle.reports.RWException
finishedTime
- Completion time expressed in milliseconds.public void setCustomProperties(java.util.Properties props) throws oracle.reports.RWException
props
- Custom properties.public void clear() throws oracle.reports.RWException
public boolean isValid()
public long getSize() throws oracle.reports.RWException
public void addFile(java.lang.String filename, short format, boolean main) throws oracle.reports.RWException
filename
- Name of the file to be added.format
- File format of the file to be added.main
- Specifies whether this file is the main part of the CacheItem.public void addContent(java.lang.String filename, byte[] bytes, short format, boolean main) throws oracle.reports.RWException
filename
- Name of the file to be added or appended.bytes
- Byte array that holds content.format
- Format of the subitem.main
- Specifies whether this file is the main part of the CacheItem.public java.lang.String getMainFile(org.omg.CORBA.ShortHolder format, org.omg.CORBA.LongHolder size, boolean full) throws oracle.reports.RWException
format
- The format of the main file of the CacheItem.public java.lang.String[] getAdditionalFiles(oracle.reports.ShortArrayHolder formats, oracle.reports.LongLongArrayHolder sizes, boolean full) throws oracle.reports.RWException
formats
- An array of formats for additional files.sizes
- An array of sizes for additional files.full
- Governs how the returned path is formatted. Either as a full directory path and file name, or only as a file name.public java.io.InputStream getContent(java.lang.String filename) throws oracle.reports.RWException
filename
- File name that holds the content.public void setContentReady() throws oracle.reports.RWException
public boolean isContentReady() throws oracle.reports.RWException
|
Oracle Reports Java API Reference |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |