Copyright (C) 2010-2012 Agrosense firstname.lastname@example.org
Licensed under the Eclipse Public License - v 1.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Class that reads binary files Reads LITTLE endian files
- Gerben Feenstra & Merijn Zengers
Method that reads from the binairyFile given to the constructor Reads the
number of bytes specified in XmlField.BinaryDataType Will reverse the
bytes to get Big endian
field The field to read
- value that has been red
byte bytes = new byte[datatype.getSize()];
value += (long) Math.pow(2, 7);
value += (long) Math.pow(2, 15);
value += (long) Math.pow(2, 31);
- True if the inputstream != null and has still bits available.