[jdom-interest] read xml from socket inputstream

alex alexdingdang at hotmail.com
Sun Mar 30 21:46:30 PST 2003


byte[] buf = new byte[length];
new DataInputStream(inputStream).readFully(buf);
InputStream in = new ByteArrayInputStream(buf);

I've read the faq,and how can I calculate the length?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20030331/ab524e04/attachment.htm


More information about the jdom-interest mailing list