Package org.restlet.ext.atom.internal
Class ServiceContentReader
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.restlet.ext.atom.internal.ServiceContentReader
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler
public class ServiceContentReader extends org.xml.sax.helpers.DefaultHandlerContent reader for services.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringBuildercontentBufferprivate CollectioncurrentCollectionprivate ServicecurrentServiceprivate WorkspacecurrentWorkspaceprivate static intIN_ACCEPTprivate static intIN_COLLECTIONprivate static intIN_COLLECTION_TITLEprivate static intIN_NONEprivate static intIN_SERVICEprivate static intIN_WORKSPACEprivate static intIN_WORKSPACE_TITLEprivate intstate
-
Constructor Summary
Constructors Constructor Description ServiceContentReader(Service service)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)voidendDocument()voidendElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)voidstartDocument()voidstartElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs)
-
-
-
Field Detail
-
IN_ACCEPT
private static final int IN_ACCEPT
- See Also:
- Constant Field Values
-
IN_COLLECTION
private static final int IN_COLLECTION
- See Also:
- Constant Field Values
-
IN_COLLECTION_TITLE
private static final int IN_COLLECTION_TITLE
- See Also:
- Constant Field Values
-
IN_NONE
private static final int IN_NONE
- See Also:
- Constant Field Values
-
IN_SERVICE
private static final int IN_SERVICE
- See Also:
- Constant Field Values
-
IN_WORKSPACE
private static final int IN_WORKSPACE
- See Also:
- Constant Field Values
-
IN_WORKSPACE_TITLE
private static final int IN_WORKSPACE_TITLE
- See Also:
- Constant Field Values
-
contentBuffer
private java.lang.StringBuilder contentBuffer
-
currentCollection
private Collection currentCollection
-
currentService
private Service currentService
-
currentWorkspace
private Workspace currentWorkspace
-
state
private int state
-
-
Constructor Detail
-
ServiceContentReader
public ServiceContentReader(Service service)
Constructor.- Parameters:
service- The parent service.
-
-
Method Detail
-
characters
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException- Specified by:
charactersin interfaceorg.xml.sax.ContentHandler- Overrides:
charactersin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
endDocument
public void endDocument() throws org.xml.sax.SAXException- Specified by:
endDocumentin interfaceorg.xml.sax.ContentHandler- Overrides:
endDocumentin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
endElement
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException- Specified by:
endElementin interfaceorg.xml.sax.ContentHandler- Overrides:
endElementin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
startDocument
public void startDocument() throws org.xml.sax.SAXException- Specified by:
startDocumentin interfaceorg.xml.sax.ContentHandler- Overrides:
startDocumentin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
startElement
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException- Specified by:
startElementin interfaceorg.xml.sax.ContentHandler- Overrides:
startElementin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
-