Java Doc for XmlPersistentObjectInputStream.java in  » Database-ORM » ODAL » com » completex » objective » components » persistency » io » xml » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » ODAL » com.completex.objective.components.persistency.io.xml.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.completex.objective.components.persistency.io.xml.impl.XmlDomStream
      com.completex.objective.components.persistency.io.xml.impl.XmlPersistentObjectInputStream

XmlPersistentObjectInputStream
public class XmlPersistentObjectInputStream extends XmlDomStream implements PoObjectInput(Code)
Implementation of PoObjectInput interface. The stream is not thread safe.
author:
   Gennady Krizhevsky

Inner Class :static interface ValueTransformer
Inner Class :class DefaultValueTransformer implements ValueTransformer
Inner Class :class PoValueTransformer implements ValueTransformer
Inner Class :class CollectionValueTransformer extends DefaultValueTransformer
Inner Class :class ExtTypeTransformer extends DefaultValueTransformer
Inner Class :protected static class CurrentContexts
Inner Class :protected static class CurrentContext

Field Summary
final public static  intEMPTY_INDEX
    
protected  CurrentContextscontexts
    

Constructor Summary
public  XmlPersistentObjectInputStream(InputStream inputStream)
    

Method Summary
protected  voidaddToReferences(Object value, String idString)
    
public  intavailable()
    
protected  voidbeginReadDescendant(Element parentNode)
    
public  voidclose()
    
protected  DocumentcreateDocument(DocumentBuilder builder)
    
protected  CurrentContextextractContext()
    
protected  StringgetAttributeByName(Node node, String tagName, boolean assertExist)
    
protected  NodegetFirstChildByTagName(Element parentNode, String tagPo, boolean assertExists)
    
protected  Node[]getNodesByName(Node parentNode, String tagName, int type, boolean assertExists)
    
protected  Node[]getValueNodes(Node parentNode)
    
protected  voidinit()
    
protected  booleanisReadDescendant()
    
public  intread()
     The method does not comply with the interface specification.
public  intread(byte b)
    
public  intread(byte b, int off, int len)
    
public  booleanreadBoolean()
     The method does not comply with the interface specification.
public  bytereadByte()
     The method does not comply with the interface specification.
public  charreadChar()
     The method does not comply with the interface specification.
protected  voidreadChildLink(Element[] linkNodes, int i, LinkedHashMap children)
    
protected  voidreadChildLinkResult(Element linkNode, Link link)
    
protected  CollectionreadCollection(Element collectionNode)
    
protected  voidreadCollectionElements(Element linkElement, Collection collection)
    
protected  CollectionTracerreadCollectionTracer(Element collectionNode, CollectionTraceable traceable)
    
protected  voidreadComplexChildren(Node poNode, PersistentObject persistentObject)
    
protected  voidreadCompoundChildren(Node poNode, PersistentObject persistentObject)
    
public  doublereadDouble()
     The method does not comply with the interface specification.
protected  ObjectreadExtType(Element childNode)
    
public  floatreadFloat()
     The method does not comply with the interface specification.
public  voidreadFully(byte b)
    
public  voidreadFully(byte b, int off, int len)
    
public  intreadInt()
     The method does not comply with the interface specification.
public  StringreadLine()
    
protected  voidreadLinks(Element[] linkNodes, PersistentObject persistentObject)
    
public  longreadLong()
     The method does not comply with the interface specification.
public  ObjectreadObject()
     Read and return an object.
protected  ObjectreadObject(CurrentContext context, Element childNode, boolean descendant)
    
protected  PersistentObjectreadPersistentObject(Element poNode)
    
protected  voidreadRecord(Node poNode, PersistentObject persistentObject)
    
public  shortreadShort()
     The method does not comply with the interface specification.
public  StringreadUTF()
    
public  intreadUnsignedByte()
     The method does not comply with the interface specification.
public  intreadUnsignedShort()
     The method does not comply with the interface specification.
protected  ElementresolveParentElement()
    
protected  ObjectresolveRefValue(ValueTransformer valueTransformer)
    
protected  voidsetupRootElement()
    
public  longskip(long n)
    
public  intskipBytes(int n)
    
protected  Objectstring2unknownBinary(String valueString)
    
protected  Objectstring2value(String className, String valueString, boolean binary)
    
protected  Objectstring2value(PersistentObject persistentObject, int idx, String valueString, Node valueNode, boolean origValue)
    

Field Detail
EMPTY_INDEX
final public static int EMPTY_INDEX(Code)



contexts
protected CurrentContexts contexts(Code)




Constructor Detail
XmlPersistentObjectInputStream
public XmlPersistentObjectInputStream(InputStream inputStream) throws IOException(Code)




Method Detail
addToReferences
protected void addToReferences(Object value, String idString)(Code)



available
public int available() throws IOException(Code)
Not used



beginReadDescendant
protected void beginReadDescendant(Element parentNode)(Code)



close
public void close() throws IOException(Code)



createDocument
protected Document createDocument(DocumentBuilder builder) throws IOException, SAXException(Code)



extractContext
protected CurrentContext extractContext()(Code)



getAttributeByName
protected String getAttributeByName(Node node, String tagName, boolean assertExist)(Code)



getFirstChildByTagName
protected Node getFirstChildByTagName(Element parentNode, String tagPo, boolean assertExists)(Code)



getNodesByName
protected Node[] getNodesByName(Node parentNode, String tagName, int type, boolean assertExists)(Code)



getValueNodes
protected Node[] getValueNodes(Node parentNode)(Code)



init
protected void init()(Code)



isReadDescendant
protected boolean isReadDescendant()(Code)



read
public int read() throws IOException(Code)
The method does not comply with the interface specification. It reads the next object as byte the byte read.
exception:
  IOException - If an I/O error has occurred or if the object is not byte



read
public int read(byte b) throws IOException(Code)
Unsupported



read
public int read(byte b, int off, int len) throws IOException(Code)
Unsupported



readBoolean
public boolean readBoolean() throws IOException(Code)
The method does not comply with the interface specification. It reads the next object as boolean. the byte read.
exception:
  IOException - If an I/O error has occurred or if the object is not boolean.



readByte
public byte readByte() throws IOException(Code)
The method does not comply with the interface specification. It reads the next object as byte the byte read.
exception:
  IOException - If an I/O error has occurred or if the object is not byte



readChar
public char readChar() throws IOException(Code)
The method does not comply with the interface specification. It reads the next object as char the byte read.
exception:
  IOException - If an I/O error has occurred or if the object is not char



readChildLink
protected void readChildLink(Element[] linkNodes, int i, LinkedHashMap children)(Code)



readChildLinkResult
protected void readChildLinkResult(Element linkNode, Link link)(Code)



readCollection
protected Collection readCollection(Element collectionNode)(Code)



readCollectionElements
protected void readCollectionElements(Element linkElement, Collection collection)(Code)



readCollectionTracer
protected CollectionTracer readCollectionTracer(Element collectionNode, CollectionTraceable traceable)(Code)



readComplexChildren
protected void readComplexChildren(Node poNode, PersistentObject persistentObject)(Code)



readCompoundChildren
protected void readCompoundChildren(Node poNode, PersistentObject persistentObject)(Code)



readDouble
public double readDouble() throws IOException(Code)
The method does not comply with the interface specification. It reads the next object as double the byte read.
exception:
  IOException - If an I/O error has occurred or if the object is not double



readExtType
protected Object readExtType(Element childNode)(Code)



readFloat
public float readFloat() throws IOException(Code)
The method does not comply with the interface specification. It reads the next object as float the byte read.
exception:
  IOException - If an I/O error has occurred or if the object is not float



readFully
public void readFully(byte b) throws IOException(Code)
Unsupported



readFully
public void readFully(byte b, int off, int len) throws IOException(Code)
Unsupported



readInt
public int readInt() throws IOException(Code)
The method does not comply with the interface specification. It reads the next object as int. the byte read.
exception:
  IOException - If an I/O error has occurred or if the object is not int.



readLine
public String readLine() throws IOException(Code)
Unsupported



readLinks
protected void readLinks(Element[] linkNodes, PersistentObject persistentObject)(Code)



readLong
public long readLong() throws IOException(Code)
The method does not comply with the interface specification. It reads the next object as long. the byte read.
exception:
  IOException - If an I/O error has occurred or if the object is not long.



readObject
public Object readObject() throws ClassNotFoundException, IOException(Code)
Read and return an object. the object read from the stream
exception:
  java.lang.ClassNotFoundException - If the class of a serializedobject cannot be found.
exception:
  IOException - If any of the usual Input/Outputrelated exceptions occur.



readObject
protected Object readObject(CurrentContext context, Element childNode, boolean descendant)(Code)



readPersistentObject
protected PersistentObject readPersistentObject(Element poNode)(Code)



readRecord
protected void readRecord(Node poNode, PersistentObject persistentObject)(Code)



readShort
public short readShort() throws IOException(Code)
The method does not comply with the interface specification. It reads the next object as short. the byte read.
exception:
  IOException - If an I/O error has occurred or if the object is not short.



readUTF
public String readUTF() throws IOException(Code)

See Also:   java.io.DataInput.readUTF



readUnsignedByte
public int readUnsignedByte() throws IOException(Code)
The method does not comply with the interface specification. It reads the next object as byte. the byte read.
exception:
  IOException - If an I/O error has occurred or if the object is not byte.



readUnsignedShort
public int readUnsignedShort() throws IOException(Code)
The method does not comply with the interface specification. It reads the next object as short. the byte read.
exception:
  IOException - If an I/O error has occurred or if the object is not short.



resolveParentElement
protected Element resolveParentElement()(Code)



resolveRefValue
protected Object resolveRefValue(ValueTransformer valueTransformer)(Code)



setupRootElement
protected void setupRootElement()(Code)



skip
public long skip(long n) throws IOException(Code)
Not used



skipBytes
public int skipBytes(int n) throws IOException(Code)
Not used



string2unknownBinary
protected Object string2unknownBinary(String valueString) throws IOException, ClassNotFoundException(Code)



string2value
protected Object string2value(String className, String valueString, boolean binary) throws IOException, ClassNotFoundException(Code)



string2value
protected Object string2value(PersistentObject persistentObject, int idx, String valueString, Node valueNode, boolean origValue)(Code)



Fields inherited from com.completex.objective.components.persistency.io.xml.impl.XmlDomStream
final public static Map BOOLEAN(Code)(Java Doc)
final public static BooleanFactory BOOLEAN_FACTORY(Code)(Java Doc)
final public static ByteFactory BYTE_FACTORY(Code)(Java Doc)
final public static Map DATE(Code)(Java Doc)
final public static DoubleFactory DOUBLE_FACTORY(Code)(Java Doc)
final public static FloatFactory FLOAT_FACTORY(Code)(Java Doc)
final public static IntegerFactory INTEGER_FACTORY(Code)(Java Doc)
final public static LongFactory LONG_FACTORY(Code)(Java Doc)
final public static ByteArrayInputStream NULL_BYTE_ARRAY_INPUT_STREAM(Code)(Java Doc)
final public static Map NUMERIC(Code)(Java Doc)
final public static ShortFactory SHORT_FACTORY(Code)(Java Doc)
final public static Map VALUE_FACTORIES(Code)(Java Doc)
protected Element currentElement(Code)(Java Doc)
protected Document document(Code)(Java Doc)
protected boolean initialized(Code)(Java Doc)
protected boolean preserveOriginalValues(Code)(Java Doc)
protected HashMap references(Code)(Java Doc)
protected Element rootElement(Code)(Java Doc)
protected String rootName(Code)(Java Doc)
protected boolean useNames(Code)(Java Doc)
protected boolean useNamesJavaStyle(Code)(Java Doc)
protected boolean useReferences(Code)(Java Doc)
protected String version(Code)(Java Doc)
protected XmlDomHelper xmlDomHelper(Code)(Java Doc)

Methods inherited from com.completex.objective.components.persistency.io.xml.impl.XmlDomStream
public void close() throws IOException(Code)(Java Doc)
abstract protected Document createDocument(DocumentBuilder builder) throws IOException, SAXException(Code)(Java Doc)
protected void ensureOpen()(Code)(Java Doc)
public Document getDocument()(Code)(Java Doc)
public Element getRootElement()(Code)(Java Doc)
public String getVersion()(Code)(Java Doc)
protected boolean isBoolean(Object value)(Code)(Java Doc)
protected boolean isBooleanClass(String className)(Code)(Java Doc)
protected boolean isDate(Object value)(Code)(Java Doc)
protected boolean isDateClass(Object className)(Code)(Java Doc)
protected boolean isNumericClass(String className)(Code)(Java Doc)
protected boolean isNumericValue(Object value)(Code)(Java Doc)
public boolean isPreserveOriginalValues()(Code)(Java Doc)
public boolean isUseNamesJavaStyle()(Code)(Java Doc)
protected void println(String s)(Code)(Java Doc)
protected Element resolveParentElement()(Code)(Java Doc)
protected void setup() throws IOException(Code)(Java Doc)
abstract protected void setupRootElement()(Code)(Java Doc)
protected Object string2value0(String className, String valueString)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w__w_w_.___j___a_va__2___s___.c__om | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.