|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.tools.resources.AttributeHolder | +--org.w3c.tools.resources.Resource | +--org.w3c.tools.resources.FramedResource | +--org.w3c.tools.resources.FileResource | +--org.w3c.jigsaw.zip.ZipFileResource
Field Summary | |
protected static int |
ATTR_ENTRYPATH
Attribute index - The index for our entry path. |
protected static int |
ATTR_ZIPFILE
Attributes index - The filename attribute. |
Fields inherited from class org.w3c.tools.resources.FileResource |
ATTR_FILE_BACKUP,
ATTR_FILE_LENGTH,
ATTR_FILENAME,
ATTR_FILESTAMP,
file |
Fields inherited from class org.w3c.tools.resources.FramedResource |
ATTR_OID,
attrListener,
debugEvent,
event_disabled,
framesRef,
structListener |
Fields inherited from class org.w3c.tools.resources.Resource |
ATTR_CONTEXT,
ATTR_HELP_URL,
ATTR_IDENTIFIER,
ATTR_LAST_MODIFIED,
ATTR_PARENT,
ATTR_RESOURCE_FRAMES,
ATTR_STORE_ENTRY,
ATTR_URL |
Fields inherited from class org.w3c.tools.resources.AttributeHolder |
attributes,
slowpickle,
values |
Constructor Summary | |
ZipFileResource()
|
Method Summary | |
java.lang.String |
getEntryPath()
|
protected long |
getEntrySize()
|
java.io.File |
getFile()
Get this zip file. |
protected java.io.InputStream |
getInputStream()
|
protected boolean |
hasEntry()
|
boolean |
newContent(java.io.InputStream in)
Save the given stream as the underlying file content. |
void |
updateFileAttributes()
Update the file related attributes. |
boolean |
verify()
Is that resource still wrapping an existing file ? If the underlying file has disappeared |
Methods inherited from class org.w3c.tools.resources.FileResource |
checkContent,
getBackupFile,
getBackupFlag,
getFileLength,
getFilename,
getFileStamp,
initialize,
setValue,
updateAttributes |
Methods inherited from class org.w3c.tools.resources.FramedResource |
addAttributeChangedListener,
addStructureChangedListener,
collectFramesReference,
delete,
disableEvent,
displayEvent,
enableEvent,
eventDisabled,
fireAttributeChangeEvent,
fireStructureChangedEvent,
fireStructureChangedEvent,
frameAdded,
frameModified,
frameRemoved,
getClone,
getFrame,
getFrame,
getFrameReference,
getFrameReference,
getFramesReference,
getOid,
lookup,
markModified,
notifyUnload,
perform,
performFrames,
postAttributeChangeEvent,
postEvent,
postStructureChangedEvent,
postStructureChangedEvent,
processEvent,
registerFrame,
registerFrameIfNone,
removeAttributeChangedListener,
removeStructureChangedListener,
unregisterFrame |
Methods inherited from class org.w3c.tools.resources.Resource |
acceptUnload,
checkMultipleLock,
collectFrames,
getContext,
getFrame,
getFrames,
getHelpURL,
getHelpURL,
getIdentifier,
getLastModified,
getParent,
getResourceReference,
getServer,
getSpace,
getSpaceEntry,
getStoreEntry,
getURLPath,
getValue,
getValue,
isInitialized,
setContext,
setContext,
setValue |
Methods inherited from class org.w3c.tools.resources.AttributeHolder |
definesAttribute,
definesAttribute,
getAttributes,
getBoolean,
getChar,
getClone,
getClone,
getDouble,
getFloat,
getInt,
getLong,
getString,
getValue,
initialize,
lookupAttribute,
pickle,
print,
setBoolean,
setChar,
setDouble,
setFloat,
setInt,
setLong,
setString,
setValue,
unpickle,
unpickle,
unpickle,
unpickleInstance,
unpickleInstance |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static int ATTR_ZIPFILE
protected static int ATTR_ENTRYPATH
Constructor Detail |
public ZipFileResource()
Method Detail |
public java.io.File getFile()
public java.lang.String getEntryPath()
protected java.io.InputStream getInputStream()
protected long getEntrySize()
protected boolean hasEntry()
public void updateFileAttributes()
public boolean verify()
public boolean newContent(java.io.InputStream in) throws java.io.IOException
~
file.in
- The input stream to use as the resource entity.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |