Searched refs:BUFFER_LENGTH (Results 1 - 3 of 3) sorted by relevance

/openjdk7/jdk/src/share/classes/javax/imageio/stream/
H A DMemoryCache.java59 private static final int BUFFER_LENGTH = 8192; field in class:MemoryCache
93 int offset = (int)(length % BUFFER_LENGTH);
98 buf = getCacheBlock(length/BUFFER_LENGTH);
104 buf = new byte[BUFFER_LENGTH];
111 int left = BUFFER_LENGTH - offset;
126 if (offset >= BUFFER_LENGTH) {
159 long bufIndex = pos/BUFFER_LENGTH;
163 int offset = (int)(pos % BUFFER_LENGTH);
171 int nbytes = (int)Math.min(len, (long)(BUFFER_LENGTH - offset));
183 long lastIndex = pos/BUFFER_LENGTH;
[all...]
H A DFileCacheImageInputStream.java52 private static final int BUFFER_LENGTH = 1024; field in class:FileCacheImageInputStream
54 private byte[] buf = new byte[BUFFER_LENGTH];
140 // BUFFER_LENGTH will always fit into an int so this is safe
142 stream.read(buf, 0, (int)Math.min(len, (long)BUFFER_LENGTH));
/openjdk7/jdk/test/sun/management/jdp/
H A DJdpClient.java45 private static final int BUFFER_LENGTH = 4096; field in class:JdpClient.PacketListener

Completed in 42 milliseconds