|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.issues.cache.XmlTaskReader
public class XmlTaskReader
Reads a task from a given stream.
Field Summary | |
---|---|
protected javax.xml.stream.XMLStreamReader |
xmlReader The reader to read single tasks from. |
Constructor Summary | |
---|---|
XmlTaskReader(javax.xml.stream.XMLStreamReader xmlReader) Default constructor. |
Method Summary | |
---|---|
void |
close() The stream is closed quietly, logging any failure at error level. |
org.eclipse.mylyn.tasks.core.data.TaskData |
createTaskData() Creates the task data instance containing basic information required to be passed to the constructor. |
org.eclipse.mylyn.tasks.core.data.TaskData |
readTask() Reads the task from the given XML stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final javax.xml.stream.XMLStreamReader xmlReader
Constructor Detail |
---|
public XmlTaskReader(javax.xml.stream.XMLStreamReader xmlReader) throws NullPointerException
xmlReader
- the reader to read single tasks from.
NullPointerException
- if the
xmlWriter
is
null
.
Method Detail |
---|
public org.eclipse.mylyn.tasks.core.data.TaskData readTask() throws javax.xml.stream.XMLStreamException
null
if no element is on the stream.
javax.xml.stream.XMLStreamException
- if the information cannot be read from the stream.
public org.eclipse.mylyn.tasks.core.data.TaskData createTaskData() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
- if the instance cannot be created due to reading problems or invalid information on the stream.
public void close()
The stream is closed quietly, logging any failure at error level.
close
in interface
Closeable
Closeable.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |