What's the diff PrintWriter vs. OutputStreamWriter ?

Discussion in 'Java' started by Lars Willich, Jan 28, 2005.

  1. Lars Willich

    Lars Willich Guest

    What is the difference bertween the following three file writing declarations:
    PrintWriter out = new PrintWriter(new FileOutputStream(....));
    vs.
    OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream(....));
    vs.
    BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(....)));

    Is one method deprecated?

    Are all methods suitable for text files?

    Lars
    Lars Willich, Jan 28, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Cyril Vi?ville

    diff Process under diff users

    Cyril Vi?ville, Jun 29, 2004, in forum: Perl
    Replies:
    1
    Views:
    501
    Joe Smith
    Jun 29, 2004
  2. Berrucho
    Replies:
    2
    Views:
    620
    Infant Newbie
    Dec 5, 2003
  3. CamT
    Replies:
    1
    Views:
    4,390
    Oscar kind
    Mar 16, 2005
  4. Roedy Green
    Replies:
    6
    Views:
    1,662
    Chris Uppal
    Jan 5, 2006
  5. Jochen Brenzlinger
    Replies:
    7
    Views:
    5,475
    Roedy Green
    Sep 15, 2011
Loading...

Share This Page