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

  • SEARCH
  • Home
  • 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 7866561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:26:05+00:00 2026-06-03T00:26:05+00:00

We shouldn’t use byte Stream as Sun Doc says – actually it represents a

  • 0

We shouldn’t use byte Stream as Sun Doc says –

actually it represents a kind of low-level I/O that you should avoid.

What is actually low-level I/O and what is exact problem using byte stream.

  • 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-06-03T00:26:06+00:00Added an answer on June 3, 2026 at 12:26 am

    So the Java docs say:

    CopyBytes seems like a normal program, but it actually represents a
    kind of low-level I/O that you should avoid. Since xanadu.txt contains
    character data, the best approach is to use character streams, as
    discussed in the next section. There are also streams for more
    complicated data types. Byte streams should only be used for the most
    primitive I/O.

    The byte streams give you access to the file as it is. Just the bytes. No interpration of any kind. That means no character set conversion, no handling of ints or floats in binary or ascii representation, no dealing with byte orders, or any of that. The higher level streams provide some of these.

    Of course a program that copies a file is actually a pretty good example of something that needs a raw byte stream, because it doesn’t need or want to do any kind of intepretation of the data; it just wants to copy it verbatim.

    So what the really mean is, use byte streams if you think you need them, but be sure you know what you are doing 🙂

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

Sidebar

Related Questions

Why should I or shouldn't I use dirty reads: set transaction isolation level read
It's clear that one shouldn't use floating precision when working with, say, monetary amounts
So I know that you shouldn't use UrlWriter methods in a model, but I
People says that libraries shouldn't have configuration files. I can't pass arguments to my
I know that we shouldn't being using the registry to store Application Data anymore,
I know this shouldn't be that hard, but I couldn't find the answer on
Is there any reason why you shouldn't use the -std=c99 flag for compiling Objective-C
If this is a question that shouldn't be on SO, please let me know.
TLDP's Advanced Bash Scripting Guide states that shell scripts shouldn't be used for situations
I know that I shouldn't throw exceptions from a destructor. If my destructor calls

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.