40% Keyboard › 웹표준-기본다지기 › HDSI › LogbackLoglevelChangeAtRuntime › JUnit3VsJUnit4 › ByteBuffer
- java.nio.Buffer . . . . 11 matches
[java nio]의 주요 클래스인 [ByteBuffer] 클래스의 주요 메소드를 이해하기 위한 코드
ByteBuffer buffer = ByteBuffer.allocate(10);
put 0,1 - java.nio.HeapByteBuffer[pos=2 lim=10 cap=10], remain=8
mark - java.nio.HeapByteBuffer[pos=2 lim=10 cap=10], remain=8
put 2,3 - java.nio.HeapByteBuffer[pos=4 lim=10 cap=10], remain=6
reset - java.nio.HeapByteBuffer[pos=2 lim=10 cap=10], remain=8
flip - java.nio.HeapByteBuffer[pos=0 lim=2 cap=10], remain=2
write to file channel a.txt - java.nio.HeapByteBuffer[pos=2 lim=2 cap=10], remain=0
rewind - java.nio.HeapByteBuffer[pos=0 lim=2 cap=10], remain=2
write to file channel b.txt - java.nio.HeapByteBuffer[pos=2 lim=2 cap=10], remain=0 - Nio의각방식을이용한파일복사성능비교 . . . . 8 matches
== ByteBuffer 이용(nodirect) : 1484, 1438, 1453, 1458 ==
ByteBuffer buffer = ByteBuffer.allocate((int)fcIn.size());
== ByteBuffer 이용(direct) : 1171, 766, 750, 703 ==
ByteBuffer buffer = ByteBuffer.allocateDirect((int)fcIn.size());
== MappedByteBuffer : 578, 610, 625, 984 ==
MappedByteBuffer buffer = fcIn.map(FileChannel.MapMode.READ_ONLY, 0, - JavaFileCopy . . . . 3 matches
import java.nio.ByteBuffer;
ByteBuffer buff = ByteBuffer.allocateDirect(buffSize); - Nio이용논블로킹소켓서버구현 . . . . 2 matches
ByteBuffer buffer = ByteBuffer.allocateDirect(1024);