public abstract class AReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
bulklink
The link mode.
|
static boolean |
DEBUG
The debug flag.
|
static java.lang.Object |
NULL
The null object.
|
static java.lang.ThreadLocal<AReadContext> |
READ_CONTEXT
This thread local variable provides access to the read context,
e.g.
|
protected XMLReporter |
reporter |
static java.lang.Object |
STRING_MARKER
The string marker object.
|
Constructor and Description |
---|
AReader(boolean bulklink,
XMLReporter reporter) |
Modifier and Type | Method and Description |
---|---|
protected AReadContext |
createReadContext(TypeInfoPathManager tipmanager,
IObjectReaderHandler handler,
IXMLReader parser,
XMLReporter reporter,
java.lang.Object callcontext,
java.lang.ClassLoader classloader) |
protected abstract IXMLReader |
createXMLReader(java.io.InputStream input) |
protected abstract IXMLReader |
createXMLReader(java.io.Reader input) |
static SubobjectInfo |
getSubobjectInfoRead(QName localname,
QName[] fullpath,
TypeInfo patypeinfo,
java.util.Map<java.lang.String,java.lang.String> attrs)
Get a subobject info for reading.
|
protected void |
handleComment(AReadContext readcontext)
Handle the comment.
|
protected void |
handleContent(AReadContext readcontext)
Handle the content.
|
protected void |
handleEndElement(AReadContext readcontext)
Handle the end element.
|
protected void |
handleStartElement(AReadContext readcontext)
Handle the start element.
|
static java.lang.Object |
objectFromByteArray(AReader reader,
byte[] val,
java.lang.ClassLoader classloader,
java.lang.Object context,
TypeInfoPathManager manager,
IObjectReaderHandler handler) |
static java.lang.Object |
objectFromByteArray(AReader reader,
byte[] val,
java.lang.ClassLoader classloader,
TypeInfoPathManager manager,
IObjectReaderHandler handler) |
static java.lang.Object |
objectFromInputStream(AReader reader,
java.io.InputStream bis,
java.lang.ClassLoader classloader,
java.lang.Object context,
TypeInfoPathManager manager,
IObjectReaderHandler handler) |
static java.lang.Object |
objectFromInputStream(AReader reader,
java.io.InputStream val,
java.lang.ClassLoader classloader,
TypeInfoPathManager manager,
IObjectReaderHandler handler) |
static java.lang.Object |
objectFromXML(AReader reader,
java.lang.String val,
java.lang.ClassLoader classloader,
java.lang.Object context,
TypeInfoPathManager manager,
IObjectReaderHandler handler) |
static java.lang.Object |
objectFromXML(AReader reader,
java.lang.String val,
java.lang.ClassLoader classloader,
TypeInfoPathManager manager,
IObjectReaderHandler handler) |
java.lang.Object |
read(TypeInfoPathManager tipmanager,
IObjectReaderHandler handler,
java.io.InputStream input,
java.lang.ClassLoader classloader,
java.lang.Object callcontext)
Read properties from xml.
|
java.lang.Object |
read(TypeInfoPathManager tipmanager,
IObjectReaderHandler handler,
IXMLReader parser,
java.lang.ClassLoader classloader,
java.lang.Object callcontext)
Read properties from xml.
|
java.lang.Object |
read(TypeInfoPathManager tipmanager,
IObjectReaderHandler handler,
java.io.Reader input,
java.lang.ClassLoader classloader,
java.lang.Object callcontext)
Read properties from xml.
|
public static final boolean DEBUG
public static final java.lang.Object STRING_MARKER
public static final java.lang.ThreadLocal<AReadContext> READ_CONTEXT
public static final java.lang.Object NULL
protected boolean bulklink
protected XMLReporter reporter
public AReader(boolean bulklink, XMLReporter reporter)
public static java.lang.Object objectFromXML(AReader reader, java.lang.String val, java.lang.ClassLoader classloader, TypeInfoPathManager manager, IObjectReaderHandler handler)
val
- The string value.public static java.lang.Object objectFromXML(AReader reader, java.lang.String val, java.lang.ClassLoader classloader, java.lang.Object context, TypeInfoPathManager manager, IObjectReaderHandler handler)
val
- The string value.public static java.lang.Object objectFromByteArray(AReader reader, byte[] val, java.lang.ClassLoader classloader, TypeInfoPathManager manager, IObjectReaderHandler handler)
val
- The string value.public static java.lang.Object objectFromByteArray(AReader reader, byte[] val, java.lang.ClassLoader classloader, java.lang.Object context, TypeInfoPathManager manager, IObjectReaderHandler handler)
val
- The string value.public static java.lang.Object objectFromInputStream(AReader reader, java.io.InputStream val, java.lang.ClassLoader classloader, TypeInfoPathManager manager, IObjectReaderHandler handler)
val
- The string value.public static java.lang.Object objectFromInputStream(AReader reader, java.io.InputStream bis, java.lang.ClassLoader classloader, java.lang.Object context, TypeInfoPathManager manager, IObjectReaderHandler handler)
val
- The string value.public static SubobjectInfo getSubobjectInfoRead(QName localname, QName[] fullpath, TypeInfo patypeinfo, java.util.Map<java.lang.String,java.lang.String> attrs)
public java.lang.Object read(TypeInfoPathManager tipmanager, IObjectReaderHandler handler, java.io.Reader input, java.lang.ClassLoader classloader, java.lang.Object callcontext) throws java.lang.Exception
input
- The input stream.classloader
- The classloader.context
- The context.java.lang.Exception
public java.lang.Object read(TypeInfoPathManager tipmanager, IObjectReaderHandler handler, java.io.InputStream input, java.lang.ClassLoader classloader, java.lang.Object callcontext) throws java.lang.Exception
input
- The input stream.classloader
- The classloader.context
- The context.java.lang.Exception
public java.lang.Object read(TypeInfoPathManager tipmanager, IObjectReaderHandler handler, IXMLReader parser, java.lang.ClassLoader classloader, java.lang.Object callcontext) throws java.lang.Exception
input
- The input stream.classloader
- The classloader.context
- The context.java.lang.Exception
protected void handleComment(AReadContext readcontext) throws java.lang.Exception
readcontext
- The context for reading with all necessary information.java.lang.Exception
protected void handleContent(AReadContext readcontext) throws java.lang.Exception
readcontext
- The context for reading with all necessary information.java.lang.Exception
protected void handleStartElement(AReadContext readcontext) throws java.lang.Exception
readcontext
- The context for reading with all necessary information.java.lang.Exception
protected void handleEndElement(AReadContext readcontext) throws java.lang.Exception
readcontext
- The context for reading with all necessary information.java.lang.Exception
protected AReadContext createReadContext(TypeInfoPathManager tipmanager, IObjectReaderHandler handler, IXMLReader parser, XMLReporter reporter, java.lang.Object callcontext, java.lang.ClassLoader classloader)
protected abstract IXMLReader createXMLReader(java.io.Reader input)
protected abstract IXMLReader createXMLReader(java.io.InputStream input)