November 2nd, 2010, 10:59 AM
Oh yes so it does. I've not done much with the nio package but from a quick read of the API docs it looks like it should do what you want.
Or one you've been using for years when the libraries are...
November 1st, 2010, 04:32 PM
:eek: Create a ByteArrayInputStream with your reordered byte data and pass this object as the InputStream when creating the DataInputStream object. The DataInputStream will then read the bytes from...
November 1st, 2010, 12:27 PM
I guess it depends on the data stream. If all data is sent as pairs of bytes that need to be in reverse order then do as I suggested, however if the number of bytes and their order depends on the...
October 29th, 2010, 01:53 PM
Two things you need to get hold of (you may already have them depending on which jdk pack you downloaded):
1. Java API docs. These holds details of every public and protected class, method,...
October 29th, 2010, 10:16 AM
So you have two issues:
1. Byte Ordering
2. Primitive formatting
Byte ordering is easy to handle - If your IED requires byte reordering simply plug your ByteReorderingInputStream class into the...
October 28th, 2010, 08:11 AM
No it isn't. You are dealing with primitive types and not objects.
No, you need to use something like DataInputStream, as I suggested earlier, which will read the byte stream and recreate a...
October 28th, 2010, 04:59 AM
I don't think serialization is going to be useful to you. Serialization is for turning objects and their contents into a transmittable stream of data that can, at some future time, be deserialized...
October 27th, 2010, 12:22 PM
Have you considered using java.io.DataInputStream and java.io.DataOutputStream to convert byte streams to primitive types and visa versa.