Skip to content

Instantly share code, notes, and snippets.

@duncanmak
Created October 30, 2009 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duncanmak/222629 to your computer and use it in GitHub Desktop.
Save duncanmak/222629 to your computer and use it in GitHub Desktop.
int count;
byte [] data = new byte [DATA_BLOCK_SIZE];
while ((count = input.read (data, 0, DATA_BLOCK_SIZE)) != -1) {
output.write (data, 0, count);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment