public class Reader extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG
The debug flag.
|
static ThreadLocal |
READ_CONTEXT
This thread local variable provides access to the read context,
e.g. from the XML reporter, if required.
|
static Object |
STRING_MARKER
The string marker object.
|
Constructor and Description |
---|
Reader(TypeInfoPathManager tipmanager)
Create a new reader.
|
Reader(TypeInfoPathManager tipmanager,
boolean bulklink)
Create a new reader.
|
Reader(TypeInfoPathManager tipmanager,
boolean bulklink,
boolean validate,
boolean coalescing,
XMLReporter reporter,
IObjectReaderHandler defaulthandler)
Create a new reader.
|
Reader(TypeInfoPathManager tipmanager,
boolean bulklink,
boolean validate,
XMLReporter reporter)
Create a new reader.
|
Modifier and Type | Method and Description |
---|---|
static SubobjectInfo |
getSubobjectInfoRead(QName localname,
QName[] fullpath,
TypeInfo patypeinfo,
Map attrs)
Get a subobject info for reading.
|
static Object |
objectFromByteArray(Reader reader,
byte[] val,
ClassLoader classloader) |
static Object |
objectFromByteArray(Reader reader,
byte[] val,
ClassLoader classloader,
Object context) |
static Object |
objectFromXML(Reader reader,
String val,
ClassLoader classloader) |
static Object |
objectFromXML(Reader reader,
String val,
ClassLoader classloader,
Object context) |
Object |
read(InputStream input,
ClassLoader classloader,
Object callcontext)
Read properties from xml.
|
Object |
read(Reader input,
ClassLoader classloader,
Object callcontext)
Read properties from xml.
|
Object |
read(XMLStreamReader parser,
ClassLoader classloader,
Object callcontext)
Read properties from xml.
|
public static boolean DEBUG
public static final Object STRING_MARKER
public static final ThreadLocal READ_CONTEXT
public Reader(TypeInfoPathManager tipmanager)
handler
- The handler.public Reader(TypeInfoPathManager tipmanager, boolean bulklink)
handler
- The handler.public Reader(TypeInfoPathManager tipmanager, boolean bulklink, boolean validate, XMLReporter reporter)
handler
- The handler.public Reader(TypeInfoPathManager tipmanager, boolean bulklink, boolean validate, boolean coalescing, XMLReporter reporter, IObjectReaderHandler defaulthandler)
handler
- The handler.public Object read(Reader input, ClassLoader classloader, Object callcontext) throws Exception
input
- The input stream.classloader
- The classloader.context
- The context.Exception
public Object read(InputStream input, ClassLoader classloader, Object callcontext) throws Exception
input
- The input stream.classloader
- The classloader.context
- The context.Exception
public Object read(XMLStreamReader parser, ClassLoader classloader, Object callcontext) throws Exception
input
- The input stream.classloader
- The classloader.context
- The context.Exception
public static Object objectFromXML(Reader reader, String val, ClassLoader classloader)
val
- The string value.public static Object objectFromXML(Reader reader, String val, ClassLoader classloader, Object context)
val
- The string value.public static Object objectFromByteArray(Reader reader, byte[] val, ClassLoader classloader)
val
- The string value.public static Object objectFromByteArray(Reader reader, byte[] val, ClassLoader classloader, Object context)
val
- The string value.public static SubobjectInfo getSubobjectInfoRead(QName localname, QName[] fullpath, TypeInfo patypeinfo, Map attrs)
Copyright © 2012. All Rights Reserved.