Freak out unless we get the frame, the whole frame and nothing but the

frame. So help us God.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-05-22 22:01:08 +00:00
parent f8f3645f67
commit d865c89bee
@@ -1,5 +1,5 @@
//
// $Id: FramedInputStream.java,v 1.1 2001/05/22 21:51:29 mdb Exp $
// $Id: FramedInputStream.java,v 1.2 2001/05/22 22:01:08 mdb Exp $
package com.samskivert.cocktail.cher.io;
@@ -78,7 +78,9 @@ public class FramedInputStream extends InputStream
}
// read the data into the buffer
source.read(_buffer, _count, flength);
if (source.read(_buffer, _count, flength) < flength) {
throw new EOFException();
}
_count = newcount;
return flength;