Class DefaultStoreAnonymizerXmlHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.jalios.jstore.tools.anonymizer.impl.sax.DefaultStoreAnonymizerXmlHandler
- All Implemented Interfaces:
StoreConstants,StoreAnonymizerConstants,ContentHandler,DTDHandler,EntityResolver,ErrorHandler
- Direct Known Subclasses:
StoreAnonymizerXmlHandler,StoreListTagsXmlHandler
public class DefaultStoreAnonymizerXmlHandler
extends DefaultHandler
implements StoreAnonymizerConstants
Processes an XML file, and rewrites it to an outputStream using
DefaultHandler.startElement(String, String, String, Attributes).- Since:
- jcms-10.0.8
- Author:
- Sylvain Devaux
-
Field Summary
FieldsFields inherited from interface com.jalios.jstore.tools.anonymizer.StoreAnonymizerConstants
CLASSNAME_PATTERN, CLOSE_WRAPPER, DATA_CLASSNAME_PATTERN, DB_DATAID_PATTERN, JSTORE_DATAID_PATTERN, OBFUSCATED, OPEN_WRAPPERFields inherited from interface com.jalios.jstore.StoreConstants
ARRAY_FLAG, CLEANING_STATE, COLLECTION_FLAG, CREATE_OP, DELETE_OP, IDLE_STATE, INNER_LOGS, INNER_MILESTONE, INNER_PREFIX, INNER_SYNC, ITEM_ESCAPE_CHAR, ITEM_SEPARATOR, LOADING_STATE, LOG_DIR_LOG_PREFIX, LOG_DIR_LOG_WORK, MAP_ASSIGN, MAP_CHARS_TO_ESCAPE, MAP_CLASS_SEPARATOR, MAP_FLAG, NAMESPACE, SH_SUFFIX, STORING_STATE, UPDATE_OP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidlongprotected static MultiInputStreamgetMultiInputStream(String filename) protected SAXParservoidsetInputFilePath(String inputFilePath) voidsetLineCount(long lineCount) voidsetOutputFilePath(String outputFilePath) Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
MGR
-
-
Constructor Details
-
DefaultStoreAnonymizerXmlHandler
public DefaultStoreAnonymizerXmlHandler()
-
-
Method Details
-
getInputFilePath
-
setInputFilePath
-
getInputStream
- Throws:
IOException
-
clearInputStream
protected void clearInputStream() -
getMultiInputStream
- Throws:
IOException
-
getOutputFilePath
-
setOutputFilePath
-
getOutputStream
- Throws:
StoreAnonymizerException
-
clearOutputStream
- Throws:
StoreAnonymizerException
-
getLineCount
public long getLineCount() -
setLineCount
public void setLineCount(long lineCount) -
getSAXParser
-