Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* ************************************************************************
 #
 #  DivConq
 #
 #  http://divconq.com/
 #
 #  Copyright:
 #    Copyright 2014 eTimeline, LLC. All rights reserved.
 #
#  License:
#    See the license.txt file in the project's top-level directory for details.
#  Authors:
#    * Andy White
************************************************************************ */
package divconq.io;
public class CyclingByteBufferOutputStream extends OutputStream {
	protected ByteBuf buf = null;
	public void installBuffer(ByteBuf buf) {
		this. = buf;
	}
	public ByteBuf uninstallBuffer() {
		ByteBuf buf = this.;
		this. = null;
		return buf;
	}
	}
	public synchronized void write(int bthrows IOException {
	}
	public synchronized void write(byte[] bytesint offint lenthrows IOException {
		.writeBytes(bytesofflen);
	}
New to GrepCode? Check out our FAQ X