- Jul 14, 2004
- 346
- 0
- 0
I am trying to create a byte object in Java. I do not understand the byte constructor.
This is what the parameters are:
Byte(byte value)
Constructs a newly allocated Byte object that represents the specified byte value.
I do not understand what "byte value" is to be. I thought it was going to be a number or value of how many bytes you want in the array.
I am reading in bytes from a server that are coming to my proxy and then I am passing them on to the browser and I am using the DataInputStream to read the bytes that are coming to me from the server itself. It has a method .read(byte) so I am trying to create an array of bytes.
Any suggestions?
This is what the parameters are:
Byte(byte value)
Constructs a newly allocated Byte object that represents the specified byte value.
I do not understand what "byte value" is to be. I thought it was going to be a number or value of how many bytes you want in the array.
I am reading in bytes from a server that are coming to my proxy and then I am passing them on to the browser and I am using the DataInputStream to read the bytes that are coming to me from the server itself. It has a method .read(byte) so I am trying to create an array of bytes.
Any suggestions?