Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4616758
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:01:43+00:00 2026-05-22T02:01:43+00:00

There are quite a few classes that extend java.io.Writer and java.io.Reader. Are there circumstances

  • 0

There are quite a few classes that extend java.io.Writer and java.io.Reader.

Are there circumstances where you should use one over another? What is the overall usefulness of each of them (why are there so many)?

Do they have difference “performance” attributes? They all just write/read from a stream – don’t they?

Does anyone know of a write-up which will give me examples of where you would use one over another.

Same question applies to dealing with actual Files too. There seems to be more than one way to open a file stream to be read/written to.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:01:44+00:00Added an answer on May 22, 2026 at 2:01 am

    The Name of the Reader says much about the use case.

    FileReader / StringReader / CharArrayReader / InputStreamReader have different implementation to read from Files, Strings, CharArrays or InputStream. The usage depends on what your source is.

    LineNumberReader / PushbackReader / BufferedReader don’t work ‘Standalone’ you can combine them with another source-Reader. for example new BufferedReader( new FileReader(file) );

    This Reader gives you methods for special cases you may want to do. BufferedReader to read line by line, or LineNumberReader to get the line number.

    PipedReader are good to read data form on Part/Thread of your Program to another Part/Thread in combination with an PipedWriter. …

    … for special cases you can build Chains with Reader and Writer like the Decorator pattern.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use JOGL (for Clojure, not Java). There seems to be quite
I know there are quite a few line count tools around. Is there something
I am writing Eclipse plugins where there are quite a few running jobs. In
I've noticed that there seems to be quite a bit of hostility towards Linq
I have a console application that contains quite a lot of threads. There are
We have been looking at the ExtJS samples quite a few times over the
We currently have quite a few classes in a project, and each of those
I'm currently using QDataStream to serialize my classes. I have quite a few number
I've been having quite a few problems trying to use Microsoft.SqlServer.Types.SqlGeography . I know
There's quite a few questions on Stack Overflow about id vs class but these

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.