Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2010
    Posts
    72
    Rep Power
    0

    Default StreamGobbler??????

    Hi all,
    I want to know about StreamGobbler class i.e its use and all other that anybody can provide me

    Any help will be highly appreciated

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #3
    Join Date
    Jan 2010
    Posts
    72
    Rep Power
    0

    Default

    ya i tried to but didn't found any good one
    i just got that StreamGobbler Reads input from a stream as long as more data is available
    but this much did not cleared and more over can you explain what the following piece of code does
    Java Code:
     Process p = Runtime.getRuntime().exec(cmd);
     StreamGobbler errorGobbler = new StreamGobbler(p.getErrorStream(),"ERROR");
                StreamGobbler outputGobbler = new StreamGobbler(p.getInputStream(),"OUTPUT");
                errorGobbler.start();
                outputGobbler.start();
    cmd is a string
    Last edited by silversurfer2in; 09-22-2010 at 06:36 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •