diff --git a/src/main/java/cz/it4i/qcmp/compression/SQImageDecompressor.java b/src/main/java/cz/it4i/qcmp/compression/SQImageDecompressor.java
index 66f8d3ab759878da3d2147020f50eac66558f028..f18481225ffca453d564bc370474af622b7a324c 100644
--- a/src/main/java/cz/it4i/qcmp/compression/SQImageDecompressor.java
+++ b/src/main/java/cz/it4i/qcmp/compression/SQImageDecompressor.java
@@ -95,7 +95,7 @@ public class SQImageDecompressor extends CompressorDecompressorBase implements I
             try (final InBitStream inBitStream = new InBitStream(compressedStream,
                                                                  header.getBitsPerCodebookIndex(),
                                                                  planeDataSize)) {
-                inBitStream.readToBuffer();
+                inBitStream.fillEntireBuffer();
                 inBitStream.setAllowReadFromUnderlyingStream(false);
 
                 final int[] decompressedValues = new int[planePixelCount];
@@ -166,7 +166,7 @@ public class SQImageDecompressor extends CompressorDecompressorBase implements I
 
             final int planeDataSize = (int) header.getPlaneDataSizes()[planeIndex];
             try (final InBitStream inBitStream = new InBitStream(compressedStream, header.getBitsPerCodebookIndex(), planeDataSize)) {
-                inBitStream.readToBuffer();
+                inBitStream.fillEntireBuffer();
                 inBitStream.setAllowReadFromUnderlyingStream(false);
 
                 final int[] decompressedValues = new int[planePixelCount];
@@ -191,7 +191,8 @@ public class SQImageDecompressor extends CompressorDecompressorBase implements I
     }
 
     @Override
-    public short[] decompressStreamMode(final DataInputStream compressedStream, final QCMPFileHeader header) throws ImageDecompressionException {
+    public short[] decompressStreamMode(final DataInputStream compressedStream,
+                                        final QCMPFileHeader header) throws ImageDecompressionException {
         throw new ImageDecompressionException("Not implemented yet.");
     }
 }
diff --git a/src/main/java/cz/it4i/qcmp/compression/VQImageDecompressor.java b/src/main/java/cz/it4i/qcmp/compression/VQImageDecompressor.java
index 31920ffae16936ee5d7ac300c7d4f567c42f0ca0..d3b3e40e5215b936166e4002fc81cb0a4377dbdf 100644
--- a/src/main/java/cz/it4i/qcmp/compression/VQImageDecompressor.java
+++ b/src/main/java/cz/it4i/qcmp/compression/VQImageDecompressor.java
@@ -162,7 +162,7 @@ public class VQImageDecompressor extends CompressorDecompressorBase implements I
             try (final InBitStream inBitStream = new InBitStream(compressedStream,
                                                                  header.getBitsPerCodebookIndex(),
                                                                  planeDataSize)) {
-                inBitStream.readToBuffer();
+                inBitStream.fillEntireBuffer();
                 inBitStream.setAllowReadFromUnderlyingStream(false);
 
                 final int[][] decompressedVectors = new int[(int) planeVectorCount][vectorSize];
@@ -212,7 +212,7 @@ public class VQImageDecompressor extends CompressorDecompressorBase implements I
             try (final InBitStream inBitStream = new InBitStream(compressedStream,
                                                                  header.getBitsPerCodebookIndex(),
                                                                  planeDataSize)) {
-                inBitStream.readToBuffer();
+                inBitStream.fillEntireBuffer();
                 inBitStream.setAllowReadFromUnderlyingStream(false);
 
                 final int[][] decompressedVectors = new int[(int) planeVectorCount][vectorSize];
@@ -284,7 +284,7 @@ public class VQImageDecompressor extends CompressorDecompressorBase implements I
             final int[][] decompressedVoxels = new int[voxelLayerVoxelCount][vectorSize];
 
             try (final InBitStream inBitStream = new InBitStream(compressedStream, header.getBitsPerCodebookIndex(), voxelLayerDataSize)) {
-                inBitStream.readToBuffer();
+                inBitStream.fillEntireBuffer();
                 inBitStream.setAllowReadFromUnderlyingStream(false);
 
                 for (int voxelIndex = 0; voxelIndex < voxelLayerVoxelCount; voxelIndex++) {
@@ -342,7 +342,7 @@ public class VQImageDecompressor extends CompressorDecompressorBase implements I
             final int[][] decompressedVoxels = new int[voxelLayerVoxelCount][vectorSize];
 
             try (final InBitStream inBitStream = new InBitStream(compressedStream, header.getBitsPerCodebookIndex(), voxelLayerDataSize)) {
-                inBitStream.readToBuffer();
+                inBitStream.fillEntireBuffer();
                 inBitStream.setAllowReadFromUnderlyingStream(false);
 
                 for (int voxelIndex = 0; voxelIndex < voxelLayerVoxelCount; voxelIndex++) {