Searched refs:byteBuffer (Results 1 - 9 of 9) 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 DGrizzlyUtils.java81 ByteBuffer byteBuffer = thread.getByteBuffer();
85 int initialPosition = byteBuffer.position();
86 byteBuffer =
87 SSLUtils.unwrapAll(byteBuffer, securedBuffer, sslEngine);
88 int producedBytes = byteBuffer.position() - initialPosition;
95 return SSLUtils.doSecureRead(key.channel(), sslEngine, byteBuffer,
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/webservices/soap-tcp/src/main/java/org/glassfish/webservices/transport/tcp/
H A DWSTCPProtocolFilter.java92 final ByteBuffer byteBuffer =
94 byteBuffer.flip();
96 connector.process(byteBuffer, channel);
/glassfish-3.1.2/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/
H A DRejar.java160 ByteBuffer byteBuffer = ByteBuffer.allocate(Long.valueOf(je.getSize()).intValue());
161 inChannel.read(byteBuffer);
162 byteBuffer.rewind();
163 out.write(byteBuffer);
/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...]
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/io/
H A DFileUtils.java912 ByteBuffer byteBuffer = ByteBuffer.allocate(10240);
915 read = inChannel.read(byteBuffer);
917 byteBuffer.limit(byteBuffer.position());
918 byteBuffer.rewind();
919 outChannel.write(byteBuffer);
920 byteBuffer.clear();
924 ByteBuffer byteBuffer = ByteBuffer.allocate(Long.valueOf(size).intValue());
925 inChannel.read(byteBuffer);
926 byteBuffer
[all...]
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/enterprise/web/
H A DPEAccessLogValve.java239 * The <code>byteBuffer</code> used to store the log.
653 ByteBuffer byteBuffer =
655 while (byteBuffer.hasRemaining()){
656 fileChannel.write(byteBuffer);
907 // Make sure the byteBuffer is clean

Completed in 24 milliseconds