Renamed ChannelBuffer.writePlaceholder to writeNul

This commit is contained in:
Trustin Lee 2008-08-08 02:07:57 +00:00
parent fbf8ab5ea7
commit 44c5860d25
4 changed files with 5 additions and 5 deletions

View File

@ -327,7 +327,7 @@ public abstract class AbstractChannelBuffer implements ChannelBuffer {
return writtenBytes; return writtenBytes;
} }
public void writePlaceholder(int length) { public void writeNul(int length) {
if (length == 0) { if (length == 0) {
return; return;
} }

View File

@ -465,7 +465,7 @@ public interface ChannelBuffer extends Comparable<ChannelBuffer> {
void writeBytes(InputStream in, int length) throws IOException; void writeBytes(InputStream in, int length) throws IOException;
int writeBytes(ScatteringByteChannel in, int length) throws IOException; int writeBytes(ScatteringByteChannel in, int length) throws IOException;
void writePlaceholder(int length); void writeNul(int length);
int indexOf(int fromIndex, int toIndex, byte value); int indexOf(int fromIndex, int toIndex, byte value);
int indexOf(int fromIndex, int toIndex, ChannelBufferIndexFinder indexFinder); int indexOf(int fromIndex, int toIndex, ChannelBufferIndexFinder indexFinder);

View File

@ -201,9 +201,9 @@ public class DynamicChannelBuffer extends AbstractChannelBuffer {
} }
@Override @Override
public void writePlaceholder(int length) { public void writeNul(int length) {
ensureWritableBytes(length); ensureWritableBytes(length);
super.writePlaceholder(length); super.writeNul(length);
} }
public ChannelBuffer duplicate() { public ChannelBuffer duplicate() {

View File

@ -453,7 +453,7 @@ class ReplayingDecoderBuffer implements ChannelBuffer {
reject(); reject();
} }
public void writePlaceholder(int length) { public void writeNul(int length) {
reject(); reject();
} }