20012002200320042005200620072008200920102011
try { Stream stream = new Stream(); stream.writeBit(1); for (double sample : sampleDoubles()) { stream.writeDouble(sample); } stream.writeBit(1); stream.readBit();