代码搜索:ByteBuffer
找到约 1,360 项符合「ByteBuffer」的源代码
代码结果 1,360
www.eeworm.com/read/150914/12245819
java getchannel.java
//: c12:GetChannel.java
// Getting channels from streams
// {Clean: data.txt}
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
www.eeworm.com/read/130612/14181561
java writedatefiles.java
// Chapter 10 Exercise 3
// This is the same as the solution to Exercise 1 except for a new class name and the additional code
// That deals with writing the binary file.
import java.io.File;
www.eeworm.com/read/130612/14181563
java readprimes.java
// Chapter 11 Exercise 2
// Output the prime specified by a command line argument, or all the primes
// if there is no command line argument.
import java.io.File;
import java.io.FileInputStream;
www.eeworm.com/read/130612/14181570
java nameandaddresssaver.java
// Chapter 11 Exercise 6
/*
This is a modification of the Ch11 ex 5 solution to make
use of an index file for finding name & address records.
This uses a different name and address file t
www.eeworm.com/read/130612/14181571
java readproverbs.java
// Chapter 11 Exercise 1
// Reads the file containing proverbs separated by '*'
import java.io.File;
import java.io.IOException;
import java.io.FileNotFoundException;
import java.io.FileInputSt
www.eeworm.com/read/230049/14307289
java getdata.java
//: c12:GetData.java
// Getting different representations from a ByteBuffer
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
i
www.eeworm.com/read/230049/14307331
java getchannel.java
//: c12:GetChannel.java
// Getting channels from streams
// {Clean: data.txt}
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
www.eeworm.com/read/127767/14336949
txt e174. reading from a socketchannel.txt
See also e173 Creating a Non-Blocking Socket.
// Create a direct buffer to get bytes from socket.
// Direct buffers should be long-lived and be reused as much as possible.
ByteBuffer b
www.eeworm.com/read/127767/14337652
txt e175. writing to a socketchannel.txt
See also e173 Creating a Non-Blocking Socket.
// Create a direct buffer to get bytes from socket.
// Direct buffers should be long-lived and be reused as much as possible.
ByteBuffer b
www.eeworm.com/read/127767/14337874
txt e163. creating a non-byte java type buffer on a bytebuffer.txt
You can create views on a ByteBuffer to support buffers of other Java primitive types. For example, by creating a character view on a ByteBuffer, you treat the ByteBuffer like a buffer of characters.