|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openadaptor.doconverter.v3.BasicDOEncoder
public class BasicDOEncoder
An implementation of ValueEncoder which encodes arrays of DataObjects as "basicdo 1.0" format XML on its output stream.
This is not intended for production use as it will be sightly slower than current systems. You should use the 'fast' or 'java' formats.
Field Summary | |
---|---|
(package private) OutputStreamComponent |
_ostream
|
(package private) java.io.BufferedWriter |
_writer
|
protected static XTag |
DOCUMENT_END_TAG
XTag containing the document (root) end tag |
protected static XTag |
DOCUMENT_START_TAG
XTag containing the document (root) end tag |
(package private) static org.apache.log4j.Logger |
log
|
protected static java.lang.String |
NEWLINE
|
Constructor Summary | |
---|---|
BasicDOEncoder(OutputStreamComponent ostream)
Designated constructor |
Method Summary | |
---|---|
void |
setOutputStream(OutputStreamComponent ostream)
Sets the OutputStream on which values will be encoded. |
void |
setSecurityManager(OASecurityManager securityManager)
Sets the security manager used by the receiver. |
void |
writeEncodedObject(java.lang.Object object)
Encodes object and writes it on output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static org.apache.log4j.Logger log
protected static final java.lang.String NEWLINE
protected static XTag DOCUMENT_START_TAG
protected static XTag DOCUMENT_END_TAG
OutputStreamComponent _ostream
java.io.BufferedWriter _writer
Constructor Detail |
---|
public BasicDOEncoder(OutputStreamComponent ostream)
Method Detail |
---|
public void setOutputStream(OutputStreamComponent ostream)
setOutputStream
in interface ValueEncoder
public void setSecurityManager(OASecurityManager securityManager) throws java.lang.SecurityException
setSecurityManager
in interface ValueEncoder
securityManager
- The new security manager (or null).
java.lang.SecurityException
- If there is a problem connecting with
the SecurityManager provided.public void writeEncodedObject(java.lang.Object object) throws java.lang.Exception, java.io.IOException
writeEncodedObject
in interface ValueEncoder
object
- Object to be encoded.
java.io.IOException
- If there is a problem writing on the OutputStream.
java.lang.Exception
- If there is a problem encoding the object;
e.g. if it is the wrong Class.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |