answersLogoWhite

0


Best Answer

The java.io.DataInputStream class in Java can be used to read in primitive values such as int, short, float, or double. It has the methods readDouble(), readFloat(), readInt(), readLong(). readShort(), etc. The class writes the values in a machine-independent way so it is independent of the native platform and operating system. In other words. an output stream can be written on a Linux platform and read from a Windows platform and vice versa.

Likewise, the DataOutputStream class can be used to write Java primitive values to an output stream.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which class allows reading of binary representations of Java primitives from an input byte stream?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a binary firewall?

binary firewall that allows only authorized IP addresses to pass through the firewall.


How is binary linked to computer memory?

Computer Memory is made of electrical circuits which can either be "on" or "off". Binary is a counting system that uses just "1" and "0". Thus one can map "0" to "off" and "1" to "on" and directly store Binary representations in computer memory circuits.


What is the difference between datainputstream and bufferedreader?

DataInputStream is used for reading primitive data types from an input stream, while BufferedReader is used for reading characters from a character-input stream and buffering the characters for efficient reading. DataInputStream is useful when reading binary data, while BufferedReader is more suitable for reading text data in a more optimized way.


What is full form of the bar code?

binary account reading code


The technology of storing and reading only two states are called?

Binary computation.


Why physical address is in hexadecimal?

The physical address is in binary, just like everything else in the computer. Other bases, such as octal, (decimal,) and hexadecimal are simply representations for our convenience.


What is the advantages of binary digits over the decimal?

Computers do not understand decimal notation. All information (both instructions and data) must be converted to a binary representation before the machine can understand it. We use the symbols 0 and 1 (binary notation) but the machine has a variety of physical representations it can use to encode binary data, including transistors, flux transitions, on/off switches and so on.


What is the difference between binary and character?

binary stream reads data(8-bits) irrespective of encoding, character stream reads two bytes as character and convert into locale stream using unicode standard. binary stream better for socket reading and character stream is better for client input reading


Applications of bcd to binary code cnvertor?

Many non-integral values, such as decimal 0.2, have an infinite place-value representation in binary (.001100110011...) but have a finite place-value in binary-coded decimal (0.0010)[bcd]. Consequently a system based on binary-coded decimal representations of decimal fractions avoids errors representing and calculating such values. Rounding at a decimal digit boundary is simpler in BCD. Addition and subtraction in decimal does not require rounding.


How do computers store informations?

ALL Computers read write store information as binary (1 and 0's) in representations of bits(smallest representation of information) and bytes (8 bits make a byte)


What will be result of the expression 13 and 25?

The result of the expression "13 and 25" would be 9. This is because the "and" operator performs a bitwise AND operation on the binary representations of the numbers 13 and 25, which results in 9.


Definition of threaded binary tree?

A binary tree variant that allows fast traversal: given a pointer to a node in a threaded tree, it is possible to cheaply find its in-order successor (and/or predecessor).