public int flush(Buffer buffer) throws IOException { // TODO handle null array() if (_out==null) return -1; int length=buffer.length(); if (length>0) buffer.writeTo(_out); buffer.clear(); return length; }
public int flush(Buffer buffer) throws IOException { // TODO handle null array() if (_out==null) return -1; int length=buffer.length(); if (length>0) buffer.writeTo(_out); buffer.clear(); return length; }