|
Oracle Reports Java API Reference 11g Release 1 (11.1.1) E10775-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheItem
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 |
---|
java.lang.String getKey()
Job getJob()
void setJob(Job job)
job
- Associates the job object with the CacheItem.void setExpiration(long expiration) throws 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.
RWException
long getExpiration()
boolean isExpired()
long getFinishedTime()
void setFinishedTime(long finishedTime) throws RWException
finishedTime
- Completion time expressed in milliseconds.
RWException
void setCustomProperties(java.util.Properties props) throws RWException
props
- Custom properties.
RWException
void clear() throws RWException
RWException
boolean isValid()
long getSize() throws RWException
RWException
void addFile(java.lang.String filename, short format, boolean main) throws 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.
RWException
void addContent(java.lang.String filename, byte[] bytes, short format, boolean main) throws 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.
RWException
java.lang.String getMainFile(org.omg.CORBA.ShortHolder format, org.omg.CORBA.LongHolder size, boolean full) throws RWException
format
- The format of the main file of the CacheItem.
RWException
java.lang.String[] getAdditionalFiles(oracle.reports.ShortArrayHolder formats, oracle.reports.LongLongArrayHolder sizes, boolean full) throws 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.
RWException
java.io.InputStream getContent(java.lang.String filename) throws RWException
filename
- File name that holds the content.
RWException
void setContentReady() throws RWException
RWException
boolean isContentReady() throws RWException
RWException
|
Oracle Reports Java API Reference |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |