code: public static InStream create(String name, ByteBuffer input, CompressionCodec codec,
        int bufferSize, boolean useVInts) throws IOException {
      if (codec == null) {
        return new UncompressedStream(name, input, useVInts);
      } else {
        return new CompressedStream(name, input, codec, bufferSize, useVInts);
      }
    }
docs: This should only be used if the data happens to already be in memory, e.g. for tests