org.w3c.jigsaw.zip
Class ZipDirectoryResource
java.lang.Object
|
+--org.w3c.tools.resources.AttributeHolder
|
+--org.w3c.tools.resources.Resource
|
+--org.w3c.tools.resources.FramedResource
|
+--org.w3c.tools.resources.AbstractContainer
|
+--org.w3c.tools.resources.ContainerResource
|
+--org.w3c.tools.resources.DirectoryResource
|
+--org.w3c.jigsaw.zip.ZipDirectoryResource
- public class ZipDirectoryResource
- extends DirectoryResource
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. |
protected java.util.Hashtable |
directories
|
Methods inherited from class org.w3c.tools.resources.DirectoryResource |
createDefaultResource,
createDefaultResource,
createResource,
delete,
getDirectory,
getDirStamp,
getExtensibleFlag,
getIndexedName,
getIndexer,
lookup,
resourceRemoved,
setValue,
verify |
Methods inherited from class org.w3c.tools.resources.ContainerResource |
acquireChildren,
addResource,
delete,
deleteChildren,
getChildrenSpaceEntry,
getClone,
getKey,
getMatchingCharsCount,
getSpaceEntry,
internalLookup,
lookup,
notifyUnload,
registerResource,
replace,
resourceCreated,
resourceModified |
Methods inherited from class org.w3c.tools.resources.FramedResource |
addAttributeChangedListener,
addStructureChangedListener,
collectFramesReference,
disableEvent,
displayEvent,
enableEvent,
eventDisabled,
fireAttributeChangeEvent,
fireStructureChangedEvent,
fireStructureChangedEvent,
frameAdded,
frameModified,
frameRemoved,
getFrame,
getFrame,
getFrameReference,
getFrameReference,
getFramesReference,
getOid,
markModified,
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,
getStoreEntry,
getURLPath,
getValue,
getValue,
isInitialized,
isUnloaded,
setContext,
setContext,
setValue,
updateAttributes |
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 |
ATTR_ZIPFILE
protected static int ATTR_ZIPFILE
- Attributes index - The filename attribute.
ATTR_ENTRYPATH
protected static int ATTR_ENTRYPATH
- Attribute index - The index for our entry path.
directories
protected java.util.Hashtable directories
ZipDirectoryResource
public ZipDirectoryResource()
getZipFile
public java.io.File getZipFile()
- Get this zip file.
getEntryPath
public java.lang.String getEntryPath()
enumerateAllResourceIdentifiers
protected java.util.Enumeration enumerateAllResourceIdentifiers()
- Enumerate all available children resource identifiers.
This method requires that we create all our pending resources.
- Returns:
- An enumeration of all our resources.
- Overrides:
- enumerateAllResourceIdentifiers in class DirectoryResource
reindex
public void reindex()
- Reindex recursivly all the resources from this DirectoryResource.
- Overrides:
- reindex in class DirectoryResource
updateDefaultChildAttributes
protected ResourceContext updateDefaultChildAttributes(java.util.Hashtable attrs)
- Initialize and register a new resource into this directory.
- Parameters:
resource
- The uninitialized resource to be added.- Overrides:
- updateDefaultChildAttributes in class DirectoryResource
enumerateResourceIdentifiers
public java.util.Enumeration enumerateResourceIdentifiers(boolean all)
- Enumerate all available children resource identifiers.
This method requires that we create all our pending resources
if we are in the extensible mode...too bad !
- Returns:
- An enumeration of all our resources.
- Overrides:
- enumerateResourceIdentifiers in class DirectoryResource
entryExists
protected boolean entryExists(java.lang.String name)
index
protected Resource index(java.lang.String name,
java.util.Hashtable defs,
RequestInterface req)
- Index a Resource. Call the indexer.
- Parameters:
name
- The name of the resource to index.defs
- The defaults attributes.req
- The protocol request.- Returns:
- A resource instance.
- Overrides:
- index in class DirectoryResource
- See Also:
SampleResourceIndexer
createResource
public ResourceReference createResource(java.lang.String name)
- Create a Resource and the physical file too.
- Parameters:
name
- the name of the resource.- Returns:
- A ResourceReference instance.
- Overrides:
- createResource in class DirectoryResource
createDirectoryResource
public ResourceReference createDirectoryResource(java.lang.String name)
- Create a DirectoryResource and the physical directory too.
- Parameters:
name
- the name of the resource.- Returns:
- A ResourceReference instance.
- Overrides:
- createDirectoryResource in class DirectoryResource
initialize
public void initialize(java.lang.Object[] values)
- Overrides:
- initialize in class DirectoryResource