[jdom-interest] A simple question...
VenkataRamana Koneti
vkoneti at hotmail.com
Wed Oct 4 08:01:53 PDT 2000
Hi Sean,
You should try this.
InputStream in = _csConnection.getInputStream();
Document doc = builder.build(in);
This will build the Document. I have used this in my code. I used jdom-b3
and jdom-b4
If you want I can send you my source code.
Thanks
Venkat
>Sean Shanny wrote:
> >
> > To all,
> >
> > Should I be able to do the following: (I want to read from a socket I
>have
> > opened and send that directly to the builder)
> >
> > I am getting the following compilation error:
> >
> > "CommerceServerStatus.java": Error #: 314 : cannot access class
> > org.xml.sax.InputSource; neither class nor source found for
> > org.xml.sax.InputSource at line 123, column 28
> >
> >
> > try {
> > _csConnection = new Socket(mCommerceServerName,
>sCommerceServerPort);
> > _outBoundRequest = new PrintWriter(_csConnection.getOutputStream(),
>true);
> >
> > _inboundData = new BufferedReader( new
> > InputStreamReader(_csConnection.getInputStream()));
> > } catch (UnknownHostException unknowHostException) {
> > System.err.println("Don't now about host: " +
>mCommerceServerName);
> > } catch (IOException ioException) {
> > System.err.println("Couldn't get I/O for the connection to :" +
> > mCommerceServerName);
> > }
> >
> > _outBoundRequest.println(sStatusRequest);
> >
> > // Build the JDOM Document
> > Document doc = builder.build(_inboundData);
> >
> > Thanks.
> >
> > --sean
> >
> > --
> > Sean Shanny
> > Principal Software Engineer
> > eZiba.com
> > phone: 413-664-9999 ext. 146
> > fax: 413-664-9990
> > e-mail: sshanny at eziba.com
> >
> > Shop http://www.eZiba.com where every object tells a story.
> >
>_______________________________________________
>To control your jdom-interest membership:
>http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
More information about the jdom-interest
mailing list