Searched defs:byteBuffer (Results 1 - 4 of 4) sorted by relevance

/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/
H A DHttpUtils.java67 public static int findBytes(ByteBuffer byteBuffer, byte[] b) { argument
68 int curPosition = byteBuffer.position();
69 int curLimit = byteBuffer.limit();
71 if (byteBuffer.position() == 0){
75 byteBuffer.position(0);
76 byteBuffer.limit(curPosition);
86 if (Ascii.toLower(byteBuffer.get(i)) != first) continue;
90 if (Ascii.toLower(byteBuffer.get(myPos++)) != b[srcPos++])
97 byteBuffer.limit(curLimit);
98 byteBuffer
[all...]
H A DServiceInitializerFilter.java63 protected boolean execute(Context ctx, ByteBuffer byteBuffer) throws IOException { argument
/glassfish-3.1.2/extras/embedded/common/osgi-main/src/main/java/org/glassfish/uberjar/osgimain/
H A DModuleExtractor.java242 * @param byteBuffer
244 private static void copy(InputStream in, OutputStream out, ByteBuffer byteBuffer) argument
252 read = inChannel.read(byteBuffer);
254 byteBuffer.limit(byteBuffer.position());
255 byteBuffer.rewind();
257 while ((written += outChannel.write(byteBuffer)) < read) {
267 byteBuffer.clear();
271 byteBuffer.clear();
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/
H A DUtility.java468 ByteBuffer byteBuffer = ByteBuffer.wrap(bArray);
483 charBuffer = decoder.decode(byteBuffer);
492 clear(byteBuffer);
526 ByteBuffer byteBuffer = null;
528 byteBuffer = encoder.encode(charBuffer);
537 byte[] result = new byte[byteBuffer.remaining()];
538 byteBuffer.get(result);
539 clear(byteBuffer);
545 private static void clear(ByteBuffer byteBuffer) { argument
546 byte[] bytes = byteBuffer
[all...]

Completed in 14 milliseconds