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, 59871🔥, 0💬
Popular Posts:
How to download and install javamail-1_2.zip? The JavaMail API is a set of abstract APIs that model ...
How to download and install Apache ZooKeeper Source Package? Apache ZooKeeper is an open-source serv...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
io.jar is a component in iText Java library to provide input/output functionalities. iText Java libr...
The JMX technology provides the tools for building distributed, Web-based, modular and dynamic solut...