0

hi,

which one of these two would be better to design a file transfer protocol FileInputStream or FileReader? i know FileInputStream is meant to be for image type of files........

thanks

2
Contributors
3
Replies
4
Views
11 Years
Discussion Span
Last Post by jwenting
0

Readers and Writers work only on line based character data, so plain text files.
For anything else, you MUST use Streams.

0

hi,

thanks for the reply.

When designing a java application(not web based), do you have to do class diagrams and domain models or just one would do. because as far as i know class diagrams should be done for each use case and domain diagram describes the overall system......is that correct?

thanks

0

Don't stare blindly at what diagrams to use. Use them when you see the need.

You're falling into the trap UML sets for the unwary (which sadly includes many "architects" and "managers") which is to think it's a goal in itself, maybe even more important than the final code.
It's not, it's merely a tool to help you visualise and communicate your design choices more clearly than the written word alone can do.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.