com.zusmart.base.buffer.Buffer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zusmart-base Show documentation
Show all versions of zusmart-base Show documentation
提供基础的工具类及方法类,Logging,Scanner,Buffer,NetWork,Future,Thread
package com.zusmart.base.buffer;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.WritableByteChannel;
public interface Buffer extends BufferGetter, BufferPutter {
public void release();
public boolean isDirect();
public boolean isReleased();
public boolean isPermanent();
public boolean isReadOnly();
public boolean isBigEndian();
public boolean hasRemaining();
public int write(WritableByteChannel channel) throws IOException;
public int read(ReadableByteChannel channel) throws IOException;
public int capacity();
public int position();
public int limit();
public int remaining();
public int indexOf(byte b);
public int indexOf(byte[] b);
public Buffer mark();
public Buffer reset();
public Buffer clear();
public Buffer flip();
public Buffer rewind();
public Buffer compact();
public Buffer slice();
public Buffer capacity(int capacity);
public Buffer duplicate();
public Buffer limit(int limit);
public Buffer position(int position);
public Buffer skip(int size);
public Buffer setPermanent(boolean permanent);
public Buffer setBigEndian(boolean bigEndian);
public Buffer asReadOnlyBuffer();
public ByteBuffer asByteBuffer();
}