Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Sending large Strings ?! only sending a line

  1. #1
    Junior Member camel's Avatar
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Sending large Strings ?! only sending a line

    Hello,

    So I have this client and server where the server is sending a largeeeee string over the network to a client. But sadly its only sending one line... I don't quite understand the problems cause. I suspect its something to do with how big the container is on the clients side but that's just speculation.

    any idea whats causing this? and how to resolve?

    Here is my code :
    SERVER
            //SERVER
     BufferedReader in;
    PrintWriter out;
        // establish server socket
             ServerSocket s = new ServerSocket(7777);
     
       // wait for client connection
                Socket incoming = s.accept( );
     
          in = new BufferedReader
                (new InputStreamReader(incoming.getInputStream()));
     
                     out = new PrintWriter
                (incoming.getOutputStream(), true /* autoFlush */);
     
     
     String Apage = "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA" ;
     
     
    out.println(Apage);//Sends page

    [B]CLIENT[/B]
    Socket server ;
    BufferedReader in;
    PrintWriter out;
     
     server = new Socket("localhost",7777);
     
    //         BufferedReader
             in = new BufferedReader
                (new InputStreamReader(server.getInputStream()));
     
    //         PrintWriter
                     out = new PrintWriter
                (server.getOutputStream(), true /* autoFlush */);
     
    String bookpage = in.readLine();// reads data from server
    System.out.println(bookpage);
    Last edited by helloworld922; April 19th, 2011 at 10:10 AM.


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Sending large Strings ?! only sending a line

    String bookpage = in.readLine();// reads data from server
    You're only reading in one line with this command. Try using a loop to keep reading lines in until you can't anymore.

  3. #3
    Junior Member camel's Avatar
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Sending large Strings ?! only sending a line

    I just wrote the below code and made the lines at the end of the page unique and it seems to work well... a bit ... it throws a error an and drops half the lines ...

    Any ideas?

    BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA
    BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA
    BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA
    BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA
    BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA
    BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA
    BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA
    BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA eleven before end
    BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA nine before end
    BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA seven before end
    BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA five before end
    BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA three before end
    BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA one before end
    Exception in thread "main" java.net.SocketException: Connection reset
            at java.net.SocketInputStream.read(SocketInputStream.java:168)
            at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
            at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
            at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
            at java.io.InputStreamReader.read(InputStreamReader.java:167)
            at java.io.BufferedReader.fill(BufferedReader.java:136)
            at java.io.BufferedReader.readLine(BufferedReader.java:299)
            at java.io.BufferedReader.readLine(BufferedReader.java:362)
            at clientpagetest.Main.main(Main.java:60)
    Java Result: 1


    CLIENT
     
    Socket server ;
    BufferedReader in;
    PrintWriter out;
     
     server = new Socket("localhost",7772);
     
    //         BufferedReader
             in = new BufferedReader
                (new InputStreamReader(server.getInputStream()));
     
    //         PrintWriter
                     out = new PrintWriter
                (server.getOutputStream(), true /* autoFlush */);
     
    int end = 1;
     
    do{
     
    if (in.readLine() == null){
     end = 0;
        }else{
     String bookpage = in.readLine();// reads data from server   
       System.out.println(bookpage);
        }
     
    }while(end == 1);

    SERVER
     BufferedReader in;
    PrintWriter out;
        // establish server socket
             ServerSocket s = new ServerSocket(7772);
     
       // wait for client connection
                Socket incoming = s.accept( );
     
          in = new BufferedReader
                (new InputStreamReader(incoming.getInputStream()));
     
                     out = new PrintWriter
                (incoming.getOutputStream(), true /* autoFlush */);
     
     
     String Apage = "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA eleven before end"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA ten before end"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA nine before end"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA eight before end"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA seven before end"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA six before end"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA five before end"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA four before end"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA three before end"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA two before end"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA one before end"+"\n"+
    "BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA END" ;
    out.println(Apage);//Sends page

Similar Threads

  1. [SOLVED] Sending xml file over a socket
    By Kakashi in forum Java Networking
    Replies: 2
    Last Post: March 9th, 2011, 09:41 AM
  2. Problem with sending a GregorianCalender HELP
    By scottgilliland2003 in forum Object Oriented Programming
    Replies: 2
    Last Post: March 9th, 2011, 05:11 AM
  3. Sending SMS in java
    By pipi in forum What's Wrong With My Code?
    Replies: 12
    Last Post: January 26th, 2011, 08:10 PM
  4. Sending object through socket
    By Alexandrinne in forum What's Wrong With My Code?
    Replies: 4
    Last Post: November 16th, 2010, 02:18 AM
  5. Sending XML over HTTP to Another Application
    By darasgar in forum Java Servlet
    Replies: 2
    Last Post: July 14th, 2010, 01:56 PM