T
- The type of the parsed entity.public class EntryContentHandler<T> extends EntryReader
Constructor and Description |
---|
EntryContentHandler(Class<?> entityClass,
EntityType entityType,
Metadata metadata,
Logger logger)
Constructor.
|
EntryContentHandler(Class<?> entityClass,
Metadata metadata,
Logger logger)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
boolean |
closeEntry(Entry entry)
Close the given entry, in case we really handle an entry (@see current
State ). |
boolean |
closeLink()
Handles the end of a "link" element.
|
void |
endContent(Content content)
Called at the end of the XML block that defines the given content
element.
|
void |
endElement(String uri,
String localName,
String qName) |
void |
endEntry(Entry entry)
Called at the end of the XML block that defines the given entry.
|
void |
endLink(Link link)
Called at the end of the XML block that defines the given link.
|
T |
getEntity() |
void |
startContent(Content content)
Called when a new content element has been detected in the Atom document.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attrs) |
void |
startEntry(Entry entry)
Called when a new entry has been detected in the Atom document.
|
void |
startFeed(Feed feed) |
void |
startLink(Link link)
Called when a new link has been detected in the Atom document.
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public EntryContentHandler(Class<?> entityClass, EntityType entityType, Metadata metadata, Logger logger)
entityClass
- The class of the parsed entities.entityType
- The entity type of the parsed entities.metadata
- The metadata of the remote OData service.logger
- The logger.public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class EntryReader
SAXException
public boolean closeEntry(Entry entry)
State
). Multiple levels expand fix start.entry
- The entry to close.public boolean closeLink()
public void endContent(Content content)
EntryReader
endContent
in class EntryReader
content
- The current content element.public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class EntryReader
SAXException
public void endEntry(Entry entry)
EntryReader
endEntry
in class EntryReader
entry
- The current entry.public void endLink(Link link)
EntryReader
endLink
in class EntryReader
link
- The current link.public T getEntity()
public void startContent(Content content)
EntryReader
startContent
in class EntryReader
content
- The current content element.public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class EntryReader
SAXException
public void startEntry(Entry entry)
EntryReader
startEntry
in class EntryReader
entry
- The current entry.public void startFeed(Feed feed)
public void startLink(Link link)
EntryReader
startLink
in class EntryReader
link
- The current link.Copyright © 2005–2015. All rights reserved.