@Deprecated public class ClassSelectionParser extends Object implements Parser
| Modifier and Type | Field and Description | 
|---|---|
protected FolderPathResolver | 
m_fpr
Deprecated.  
for path verification 
 | 
protected LibrarySession | 
m_session
Deprecated.  
the session 
 | 
static String | 
PROPERTY_BUNDLE_NAME
Deprecated.  
  | 
CURRENT_NAME_OPTION, CURRENT_PATH_OPTION, DOCUMENT_CHARSET_OPTION, DOCUMENT_LANGUAGE_OPTION, LITERAL_DOCUMENT_OPTION, UPDATE_OBJECT_OPTION, VALIDATE_DOCUMENT_OPTION| Constructor and Description | 
|---|
ClassSelectionParser(LibrarySession session)
Deprecated.  
Constructs a ClassSelectionParser 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected Document | 
createDocument(Folder parent,
              DocumentDefinition def,
              String name,
              String classname,
              ParserCallback callback)
Deprecated.  
Encapsulates document creation given a parent folder, a name, Document subclass classname,
 and an stream/reader; 
 will not update a prior existing object in parent, 
 will throw an IfsException simply because an object already exists in parent with name 
 | 
protected String | 
getClassname(String filename)
Deprecated.  
Deternmines the classname of the Document based on the filename extension. 
 | 
protected DocumentDefinition | 
getDocDef(Folder parent,
         InputStream in,
         String name)
Deprecated.  
Defines what it means to be a plain non versioned doc 
 | 
protected DocumentDefinition | 
getDocDef(Folder parent,
         Reader reader,
         String name)
Deprecated.  
Defines what it means to be a plain non versioned doc 
 | 
LibraryObject | 
parse(InputStream stream,
     ParserCallback callback,
     Hashtable options)
Deprecated.  
Use the stream as the content of a Document subclass based on the
 Parser.CURRENT_NAME_OPTION. 
 | 
LibraryObject | 
parse(Reader reader,
     ParserCallback callback,
     Hashtable options)
Deprecated.  
Use the reader as the content of a Document subclass based on the
 Parser.CURRENT_NAME_OPTION. 
 | 
protected PublicObject | 
putPublicObjectWithVersioning(Folder parent,
                             DocumentDefinition def,
                             String name,
                             String classname,
                             ParserCallback callback)
Deprecated.  
Encapsulates the ftpish notion of a put given a parent folder, a name, and an stream/reader; 
 will create or update existing PO depending prior existence of an object in parent,
 if creating an object of class classname is created. 
 | 
protected Document | 
updateFolderedPublicObjectWithVersioning(Folder parent,
                                        DocumentDefinition def,
                                        String name,
                                        String classname,
                                        ParserCallback callback)
Deprecated.  
encapsulates the item update given a parent folder, a name, and an stream/reader; 
 will update a prior existing object in parent, 
 will throw an IfsException simply because an object doesn't exist in parent 
 | 
public static final String PROPERTY_BUNDLE_NAME
protected LibrarySession m_session
protected FolderPathResolver m_fpr
public ClassSelectionParser(LibrarySession session) throws IfsException
IfsExceptionprotected String getClassname(String filename)
public LibraryObject parse(InputStream stream, ParserCallback callback, Hashtable options) throws IfsException
parse in interface Parserstream - the contentcallback - the callbackoptions - the optionsIfsException - (IFS-12601) if the operation failspublic LibraryObject parse(Reader reader, ParserCallback callback, Hashtable options) throws IfsException
parse in interface Parserreader - the contentcallback - the callbackoptions - the optionsIfsException - (IFS-12602) if the operation failsprotected PublicObject putPublicObjectWithVersioning(Folder parent, DocumentDefinition def, String name, String classname, ParserCallback callback) throws IOException, IfsException
parent - the folder where the item goesdef - the DocumentDefinitionname - the name of the itemclassname - the classname of the new object, must be Document.CLASS_NAME or a subclass of Documentcallback - the callbackIOExceptionIfsExceptionprotected Document updateFolderedPublicObjectWithVersioning(Folder parent, DocumentDefinition def, String name, String classname, ParserCallback callback) throws IfsException, IOException
parent - the folder where the item goesdef - the DocumentDefinitionname - the name of the itemcallback - the callbackIfsExceptionIOExceptionprotected Document createDocument(Folder parent, DocumentDefinition def, String name, String classname, ParserCallback callback) throws IfsException, IOException
parent - the folder where the item goesdef - the DocumentDefinitionname - the name of the documentclassname - the Document subclass classnamecallback - the callbackIfsExceptionIOExceptionprotected DocumentDefinition getDocDef(Folder parent, InputStream in, String name) throws IfsException
IfsExceptionprotected DocumentDefinition getDocDef(Folder parent, Reader reader, String name) throws IfsException
IfsExceptionCopyright © 2025. All rights reserved.