Class DefaultStoreAnonymizerXmlHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- com.jalios.jstore.tools.anonymizer.impl.sax.DefaultStoreAnonymizerXmlHandler
-
- All Implemented Interfaces:
StoreConstants,StoreAnonymizerConstants,org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler
- Direct Known Subclasses:
StoreAnonymizerXmlHandler,StoreListTagsXmlHandler
public class DefaultStoreAnonymizerXmlHandler extends org.xml.sax.helpers.DefaultHandler implements StoreAnonymizerConstants
Processes an XML file, and rewrites it to an outputStream usingDefaultHandler.startElement(String, String, String, Attributes).- Since:
- jcms-10.0.8
- Author:
- Sylvain Devaux
-
-
Field Summary
Fields Modifier and Type Field Description protected static StoreAnonymizerManagerMGR-
Fields inherited from interface com.jalios.jstore.tools.anonymizer.StoreAnonymizerConstants
CLASSNAME_PATTERN, CLOSE_WRAPPER, DATA_CLASSNAME_PATTERN, DB_DATAID_PATTERN, JSTORE_DATAID_PATTERN, OBFUSCATED, OPEN_WRAPPER
-
Fields 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 Constructor Description DefaultStoreAnonymizerXmlHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclearInputStream()protected voidclearOutputStream()java.lang.StringgetInputFilePath()java.io.InputStreamgetInputStream()longgetLineCount()protected static MultiInputStreamgetMultiInputStream(java.lang.String filename)java.lang.StringgetOutputFilePath()java.io.OutputStreamgetOutputStream()protected javax.xml.parsers.SAXParsergetSAXParser()voidsetInputFilePath(java.lang.String inputFilePath)voidsetLineCount(long lineCount)voidsetOutputFilePath(java.lang.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, warning
-
-
-
-
Field Detail
-
MGR
protected static final StoreAnonymizerManager MGR
-
-
Method Detail
-
getInputFilePath
public java.lang.String getInputFilePath()
-
setInputFilePath
public void setInputFilePath(java.lang.String inputFilePath)
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Throws:
java.io.IOException
-
clearInputStream
protected void clearInputStream()
-
getMultiInputStream
protected static MultiInputStream getMultiInputStream(java.lang.String filename) throws java.io.IOException
- Throws:
java.io.IOException
-
getOutputFilePath
public java.lang.String getOutputFilePath()
-
setOutputFilePath
public void setOutputFilePath(java.lang.String outputFilePath)
-
getOutputStream
public java.io.OutputStream getOutputStream() throws StoreAnonymizerException- Throws:
StoreAnonymizerException
-
clearOutputStream
protected void clearOutputStream() throws StoreAnonymizerException- Throws:
StoreAnonymizerException
-
getLineCount
public long getLineCount()
-
setLineCount
public void setLineCount(long lineCount)
-
getSAXParser
protected javax.xml.parsers.SAXParser getSAXParser() throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException- Throws:
javax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXException
-
-