public class ParserHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected IfsObjectResolver |
m_lookup
the object resolver
|
protected Hashtable |
m_parserLookup
only lookup, construct a parser once
|
protected PublicObjectUtilities |
m_poUtils
PublicObjectUtilities
|
protected LibrarySession |
m_session
the session
|
| Constructor and Description |
|---|
ParserHelper(LibrarySession session)
Creates a Parser Handler-- standard variant
|
| Modifier and Type | Method and Description |
|---|---|
LibraryObject |
parseExistingDocument(Document doc,
String workingName,
String workingParentFolderPath,
ParserCallback callback,
AccessControlList acl)
Handles the creation of objects given an existing Document.
|
boolean |
parserExists(String filename)
Checks to see if a filename should be parsed.
|
LibraryObject |
parseStream(InputStream in,
String name,
String parentFolderPath,
ParserCallback callback,
AccessControlList acl,
String language,
String characterSet)
Handles the creation of objects given a Stream and a name
|
protected Hashtable m_parserLookup
protected LibrarySession m_session
protected IfsObjectResolver m_lookup
protected PublicObjectUtilities m_poUtils
public ParserHelper(LibrarySession session)
public boolean parserExists(String filename)
filename - the filenamepublic LibraryObject parseStream(InputStream in, String name, String parentFolderPath, ParserCallback callback, AccessControlList acl, String language, String characterSet) throws IfsException, IOException
in - the InputStream that contains the dataname - the name used to determine the parser and maybe the name of the objectparentFolderPath - the path to the parentfoldercallback - the parser callback passed to the parseracl - an overridding acl for public objectslanguage - the language of the documentcharacterSet - the character set of the documentIfsExceptionIOExceptionpublic LibraryObject parseExistingDocument(Document doc, String workingName, String workingParentFolderPath, ParserCallback callback, AccessControlList acl) throws IfsException, IOException
doc - the existing unfoldered docworkingName - the name used to determine the parser and maybe the name of the objectworkingParentFolderPath - the path to the parentfoldercallback - the parser callback passed to the parseracl - an overridding acl for public objectsIfsExceptionIOExceptionCopyright © 2025. All rights reserved.