Class BasicDAVHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.tmatesoft.svn.core.internal.io.dav.handlers.BasicDAVHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
- Direct Known Subclasses:
BasicDAVDeltaHandler,DAVDateRevisionHandler,DAVDeletedRevisionHandler,DAVErrorHandler,DAVGetLocksHandler,DAVInheritedPropertiesHandler,DAVLocationSegmentsHandler,DAVLocationsHandler,DAVLockHandler,DAVLogHandler,DAVMergeHandler,DAVMergeInfoHandler,DAVOptionsHandler,DAVPropertiesHandler,DAVProppatchHandler
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Collectionprivate StringBufferprivate byte[]private Stringprivate Listprivate Stackprivate Mapprivate static final Objectprotected static final Collectionprotected static final Collection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]allocateBuffer(int length) voidcharacters(char[] ch, int start, int length) protected SVNPropertyValuecreatePropertyValue(DAVElement element, String propertyName, StringBuffer cdata, String encoding) protected SVNPropertyValuecreatePropertyValueFromBase64(DAVElement element, String propertyName, StringBuffer cdata) voidendElement(String uri, String localName, String qName) protected abstract voidendElement(DAVElement parent, DAVElement element, StringBuffer cdata) voidendPrefixMapping(String prefix) private DAVElementgetDAVElement(String qName, String localName, String namespace) protected Listprivate DAVElementprotected voidinit()protected voidprivate voidsetNamespace(String uri) voidstartElement(String uri, String localName, String qName, Attributes attributes) protected abstract voidstartElement(DAVElement parent, DAVElement element, Attributes attrs) voidstartPrefixMapping(String prefix, String uri) private booleanuseStringProperty(DAVElement element, String propertyName) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, 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
-
SVN_DAV_NAMESPACES_LIST
-
SVN_NAMESPACES_LIST
-
DAV_NAMESPACES_LIST
-
ROOT
-
myPrefixesMap
-
myNamespacesCollection
-
myNamespace
-
myCDATA
-
myParent
-
myDeltaBuffer
private byte[] myDeltaBuffer
-
-
Constructor Details
-
BasicDAVHandler
protected BasicDAVHandler()
-
-
Method Details
-
setNamespace
-
init
protected void init() -
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classDefaultHandler- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Overrides:
endPrefixMappingin classDefaultHandler- Throws:
SAXException
-
startElement
protected abstract void startElement(DAVElement parent, DAVElement element, Attributes attrs) throws SVNException - Throws:
SVNException
-
endElement
protected abstract void endElement(DAVElement parent, DAVElement element, StringBuffer cdata) throws SVNException - Throws:
SVNException
-
invalidXML
- Throws:
SVNException
-
getNamespaces
-
getParent
-
getDAVElement
-
createPropertyValue
protected SVNPropertyValue createPropertyValue(DAVElement element, String propertyName, StringBuffer cdata, String encoding) throws SVNException - Throws:
SVNException
-
createPropertyValueFromBase64
protected SVNPropertyValue createPropertyValueFromBase64(DAVElement element, String propertyName, StringBuffer cdata) -
useStringProperty
-
allocateBuffer
protected byte[] allocateBuffer(int length)
-