Why do you think the Java language chooses to treat file data as a stream rather than as a single object?
Jump to Post
What kind of object do you think that could be? How big do you think it could be?
Java 7's NIO package includes a MappedByteBuffer class that maps the contents of the file to a logical array of bytes (or other primitive types) in memory, but you do have …
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.