Package com.logicaldoc.impex
Class IndexImportHandler
- java.lang.Object
 - 
- org.xml.sax.helpers.DefaultHandler
 - 
- com.logicaldoc.impex.IndexHandler
 - 
- com.logicaldoc.impex.IndexImportHandler
 
 
 
 
- 
- All Implemented Interfaces:
 ContentHandler,DTDHandler,EntityResolver,ErrorHandler
public class IndexImportHandler extends IndexHandler
This class is used to unmarshall the archive's index file and allows to get the archive's documents list- Since:
 - 4.5
 - Author:
 - Matteo Caruso - LogicalDOC
 
 
- 
- 
Constructor Summary
Constructors Constructor Description IndexImportHandler(Archive archive, ArchiveImporter importer, Map<String,com.logicaldoc.core.metadata.Template> templates, Collection<com.logicaldoc.core.folder.Folder> workspaces, com.logicaldoc.core.security.Tenant tenant) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)voidendElement(String uri, String localName, String qName)com.logicaldoc.core.document.DocumentgetCurrentDocument()voidstartElement(String uri, String localname, String tagName, Attributes attributes)- 
Methods inherited from class com.logicaldoc.impex.IndexHandler
getArchive, getArchiveVersion, getCount, getCurrentVersion, getProgramVersion, getSizediplay 
- 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
IndexImportHandler
public IndexImportHandler(Archive archive, ArchiveImporter importer, Map<String,com.logicaldoc.core.metadata.Template> templates, Collection<com.logicaldoc.core.folder.Folder> workspaces, com.logicaldoc.core.security.Tenant tenant)
 
 - 
 
- 
Method Detail
- 
startElement
public void startElement(String uri, String localname, String tagName, Attributes attributes) throws SAXException
- Specified by:
 startElementin interfaceContentHandler- Overrides:
 startElementin classIndexHandler- Throws:
 SAXException
 
- 
endElement
public void endElement(String uri, String localName, String qName)
- Specified by:
 endElementin interfaceContentHandler- Overrides:
 endElementin classIndexHandler
 
- 
characters
public void characters(char[] ch, int start, int length)- Specified by:
 charactersin interfaceContentHandler- Overrides:
 charactersin classIndexHandler
 
- 
getCurrentDocument
public com.logicaldoc.core.document.Document getCurrentDocument()
 
 - 
 
 -