News for hackers. Stuff that matters.
Re:Why I like Java by cbsmith on Tuesday March 25, 2014 @03:53AM (#7464466)
Here's the simpler, likely slower, but nonetheless actually correct solution: https://gist.github.com/cbsmith/9755809
Re:Why I like Java by dlubarov on Tuesday March 25, 2014 @11:40AM (#7466485)
Oh, gotcha. The code above with "byte[] buffer" also works since write(byte[], int, int) flushes.