Package com.logicaldoc.importfolder
Class ImportFolderIndexHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- com.logicaldoc.impex.IndexHandler
-
- com.logicaldoc.impex.AbstractIndexImportHandler
-
- com.logicaldoc.importfolder.ImportFolderIndexHandler
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class ImportFolderIndexHandler extends AbstractIndexImportHandler
This class is used to unmarshall the index file that is inside a local or remote folder to import the files inside it.- Since:
- 5.1
- Author:
- Matteo Caruso - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description ImportFolderIndexHandler(ImportFolder importFolder, ImportFolderCrawler 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 void
characters(char[] ch, int start, int length)
void
endElement(String uri, String localName, String qName)
com.logicaldoc.core.document.Document
getCurrentDocument()
void
startElement(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
-
ImportFolderIndexHandler
public ImportFolderIndexHandler(ImportFolder importFolder, ImportFolderCrawler importer, Map<String,com.logicaldoc.core.metadata.Template> templates, Collection<com.logicaldoc.core.folder.Folder> workspaces, com.logicaldoc.core.security.Tenant tenant) throws com.logicaldoc.core.PersistenceException
- Throws:
com.logicaldoc.core.PersistenceException
-
-
Method Detail
-
startElement
public void startElement(String uri, String localname, String tagName, Attributes attributes) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classIndexHandler
- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String qName)
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classIndexHandler
-
characters
public void characters(char[] ch, int start, int length)
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classAbstractIndexImportHandler
-
getCurrentDocument
public com.logicaldoc.core.document.Document getCurrentDocument()
- Overrides:
getCurrentDocument
in classAbstractIndexImportHandler
-
-