Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Read XML from Socket with socket\DelayedInput.java
How to read XML document from socket connections with the socket\DelayedInput.java provided in the Apache Xerces package?
✍: FYIcenter
If you want to see how XML parser handles XML document from socket connections, you can try the socket\DelayedInput.java provided in the Apache Xerces package to display element type information.
Compile and run socket\DelayedInput.java, if you have Apache Xerces 2.11.0 installed:
\fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\javac socket\DelayedInput.java Note: socket\DelayedInput.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. \fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\java -cp .;..\xercesImpl.jar socket.DelayedInput User.xml # filename: User.xml read 48 bytes in 23 ms: [\n<!-- Copyright (c) 2017 FYIcenter.com -->\n<User] read 48 bytes in 968 ms: [>\n <ID>101</ID>\n <BirthDate>1970-01-01+00:] (User (ID )ID (BirthDate read 48 bytes in 682 ms: [01</BirthDate>\n <Name>Frank Y. Ivy</Name>\n ] )BirthDate (Name )Name read 27 bytes in 1988 ms: [ <Sex> Male</Sex>\n</User>\n] (Sex )Sex )User read -1 bytes in 1977 ms: no data read
⇒ Read XML/DTD from Socket with socket\DelayedInput.java
⇐ socket\DelayedInput.java - Apache Xerves Socket Sample
2017-09-28, 59212🔥, 0💬
Popular Posts:
Commons Pool provides an Object-pooling API, with three major aspects: 1. A generic object pool inte...
commons-lang-1.0.1.jar is the JAR file for Apache Commons Lang 1.0.1, which provides a host of helpe...
kernel.jar is a component in iText Java library to provide low-level functionalities. iText Java lib...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
JDK 11 jdk.internal.vm.ci.jmod is the JMOD file for JDK 11 Internal VM CI module. JDK 11 Internal VM...