[Laszlo-dev] FileUtils.java log
keiji Ono
keiji_ono at net8.co.jp
Wed Sep 26 05:03:49 PDT 2007
Adding, it was the source of lps-3.3.3, and the data was not multibyte
character.
Keiji Ono
>Hi all,
>
>I am checking about Input/Output data on LPS now.
>Because when i take SOAP interface on my application, the getting data
>is wrong.
>Then i would like to check data where output from LPS.
>At the point of FileUtils.java, i add some code like following(BlockName-A).
>But it got unreadable data to write lps.log as following.
>How can i get 'readable' log on lps.log ?
>
><checking code on FileUtils.java>
>public static int sendToStream(InputStream input,
>OutputStream output, int size)
>throws IOException {
>int c = 0;
>byte[] buffer = new byte[size];
>int b = 0;
>while(true) {
>try {
>// Until end of stream
>if ((b = input.read(buffer)) <= 0) {
>return c;
>}
>} catch (IOException e) {
>throw new StreamReadingException(e.getMessage());
>}
>c += b;
>try {
>output.write(buffer, 0, b);
>
>//=== adding from here BlockName-A
>{
>String aString = new String(buffer, "UTF-8");
>mLogger.debug( "OUTPUT: " + aString );
>}
>//=== to here
>
><lps.log>
>OUTPUT: FWS4 x F ? `
>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx?? ?0 _m _t CSPCHD id
>AddLongResponse AddLongResult ? _m _root ? _m N? _t _root ?
>_t N? ? _root ?
>_rootndi RL? C? =L? C? =L?;
>0000000100001gUD5zy4000000XKonfBejSj6FIgaG0jaWHQ-- =? ?
>_root ? _finishndi R? B? ? _root ?
>_rootndi RL? C? =L? C? =L?
>GHGHGH =? ? _root ? _finishndi R? B? _parent ? ?
>_parent ? loader N? returnData R @
>
> Thanks any advance.
>
> Keiji Ono
>
>
>
More information about the Laszlo-dev
mailing list