All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zusmart.base.buffer.Buffer Maven / Gradle / Ivy

Go to download

提供基础的工具类及方法类,Logging,Scanner,Buffer,NetWork,Future,Thread

There is a newer version: 1.0.6
Show newest version
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();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy