Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. private void writeCompressedBits(BitInputStream in, BitOutputStream out, String[] codings){
  2. int val = in.readBits(8);
  3. while (val != -1) {
  4. String encode = codings[val];
  5. out.writeBits(encode.length(), Integer.parseInt(encode, 2));
  6. val = in.readBits(8);
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement