[5122] in java-interest

home help back first fref pref prev next nref lref last post

DataInputStream readLine() method

daemon@ATHENA.MIT.EDU (TWhitehill@banyan.com)
Mon Jan 29 18:51:05 1996

From: TWhitehill@banyan.com
Date: Mon, 29 Jan 96 17:03:34 EST
To: <java-interest@java.sun.com>

Hi,

The description of the readLine() method reads:

"Reads in a line that has been terminated by a \n, \r, \r\n or EOF."

1)  Is a 'line' a sequence/array of chars, bytes or is it a String?

2)  When I terminate a String with a '\n' and send it from my server via 
DataOutputStream's writeChars() method my applet which 
receives with DataInputStream's readLine() method does nothing.  When the 
applet receives the data with readChar() in a loop the String is correctly 
received (with or without the '\n').   Any ideas?

3)  Assuming that I'll get the readLine() method to work correctly, how 
does one terminate it with EOF?  I've searched but found nothing.

Thanks alot,

Tom Whitehill
Directory Solutions Software Engineer
Banyan Systems, Inc.
Westboro, MA
whitehill@banyan.com


The following was included as an attachement.  Please use UUDECODE
to retrieve it.  The original file name was 'ATTRIBS.BND'.

begin 666 ATTRIBS.BND
M0F5Y;VYD(%!A8VME9"!!='1R:6)U=&5S`%1224)3*```````1&%T84EN<'5T
M4W1R96%M(')E861,:6YE*"D@;65T:&]D````````````````````````````
M````````````````````````````````````````````````````````````
M`%1O;2!7:&ET96AI;&P`````````````````````````````````````````
M``````````````````````````````````!*-DXV*VY%23%L````````````
M````````0F5Y;VYD(%!R;W!R:65T87)Y($1A=&$:`````!$`````````!``6
M!```````````````````````````5&5X=`T#2&DL"@I4:&4@9&5S8W)I<'1I
M;VX@;V8@=&AE(')E861,:6YE*"D@;65T:&]D(')E861S.@H*(E)E861S(&EN
M(&$@;&EN92!T:&%T(&AA<R!B965N('1E<FUI;F%T960@8GD@82!<;BP@7'(L
M(%QR7&X@;W(@14]&+B(*"C$I("!)<R!A("=L:6YE)R!A('-E<75E;F-E+V%R
M<F%Y(&]F(&-H87)S+"!B>71E<R!O<B!I<R!I="!A(%-T<FEN9S\*"C(I("!7
M:&5N($D@=&5R;6EN871E(&$@4W1R:6YG('=I=&@@82`G7&XG(&%N9"!S96YD
M(&ET(&9R;VT@;7D@<V5R=F5R('9I82!$871A3W5T<'5T4W1R96%M)W,@=W)I
M=&5#:&%R<R@I(&UE=&AO9"!M>2!A<'!L970@=VAI8V@@"G)E8V5I=F5S('=I
M=&@@1&%T84EN<'5T4W1R96%M)W,@<F5A9$QI;F4H*2!M971H;V0@9&]E<R!N
M;W1H:6YG+B`@5VAE;B!T:&4@87!P;&5T(')E8V5I=F5S('1H92!D871A('=I
M=&@@<F5A9$-H87(H*2!I;B!A(&QO;W`@=&AE(%-T<FEN9R!I<R!C;W)R96-T
M;'D@<F5C96EV960@*'=I=&@@;W(@=VET:&]U="!T:&4@)UQN)RDN("`@06YY
M(&ED96%S/PH*,RD@($%S<W5M:6YG('1H870@22=L;"!G970@=&AE(')E861,
M:6YE*"D@;65T:&]D('1O('=O<FL@8V]R<F5C=&QY+"!H;W<@9&]E<R!O;F4@
M=&5R;6EN871E(&ET('=I=&@@14]&/R`@22=V92!S96%R8VAE9"!B=70@9F]U
M;F0@;F]T:&EN9RX*"E1H86YK<R!A;&]T+`H*5&]M(%=H:71E:&EL;`I$:7)E
M8W1O<GD@4V]L=71I;VYS(%-O9G1W87)E($5N9VEN965R"D)A;GEA;B!3>7-T
M96US+"!);F,N"E=E<W1B;W)O+"!-00IW:&ET96AI;&Q`8F%N>6%N+F-O;0,!
M`P`-`_P``0`!````%``!``$``0`-`P```````#C_````````D`$`````````
M`$U3(%-A;G,@4V5R:68```````````````````````````````$``0`$``$`
M!0`%``$`!@`U``$`-@`V``$`-P![``$`?`!\``$`?0#```$`P0#!``$`P@!"
M`0$`0P$)`@$`"@(*`@$`"P*4`@$`E0*5`@$`E@*B`@$`HP*C`@$`I`*Q`@$`
ML@+7`@$`V`+L`@$`[0+Y`@$`^@(.`P```````````````&0``:0!`4@#`>P$
D`9`&`30(`=@)`7P+`2`-`<0.`6@0`0P2`;`3`505`?@6(```
`
end
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post