- int version;
- int width;
- int height;
-
-
- public void load(BitInputStream inputStream) throws IOException{
-
- version = inputStream.readBits(16);
- width = inputStream.readIntegerCompressed8();
- height = inputStream.readIntegerCompressed8();
-
- }
-
- public void save(BitOutputStream outputStream) throws IOException{
-
- outputStream.storeBits(version, 16);
- outputStream.storeIntegerCompressed8(width);
- outputStream.storeIntegerCompressed8(height);
-
- }
+ int version;
+ int width;
+ int height;
+
+ public void load(final BitInputStream inputStream) throws IOException {
+ version = inputStream.readBits(16);
+ width = ImageDecoder.readIntegerCompressed8(inputStream);
+ height = ImageDecoder.readIntegerCompressed8(inputStream);
+ }
+
+ public void save(final BitOutputStream outputStream) throws IOException {
+ outputStream.storeBits(version, 16);
+ ImageEncoder.storeIntegerCompressed8(outputStream, width);
+ ImageEncoder.storeIntegerCompressed8(outputStream, height);
+ }