Searched refs:bytes (Results 1 - 25 of 47) sorted by relevance

12

/glassfish-3.1.2/transaction/jts/src/main/java/com/sun/jts/CosTransactions/
H A DLogRestartDescriptor.java100 * @param bytes The array of bytes from which the object is
108 LogRestartDescriptor(byte[] bytes, int index) { argument
109 restartValid = (bytes[index++]&255) +
110 ((bytes[index++]&255) << 8) +
111 ((bytes[index++]&255) << 16) +
112 ((bytes[index++]&255) << 24);
114 restartDataLength = (bytes[index++]&255) +
115 ((bytes[index++]&255) << 8) +
116 ((bytes[inde
135 toBytes(byte[] bytes, int index) argument
[all...]
H A DLogRecordHeader.java98 * @param bytes The array of bytes from which the object is to
106 LogRecordHeader(byte[] bytes, int index) { argument
107 recordType = (bytes[index++]&255) +
108 ((bytes[index++]&255) << 8) +
109 ((bytes[index++]&255) << 16) +
110 ((bytes[index++]&255) << 24);
112 currentLSN = new LogLSN(bytes,index); index += LogLSN.SIZEOF;
113 previousLSN = new LogLSN(bytes,index); index += LogLSN.SIZEOF;
114 nextLSN = new LogLSN(bytes,inde
149 toBytes(byte[] bytes, int index) argument
[all...]
H A DLogLSN.java147 * @param bytes The array of bytes from which the LogLSN is to be constructed.
154 LogLSN( byte[] bytes, argument
156 offset = (bytes[index++]&255) +
157 ((bytes[index++]&255) << 8) +
158 ((bytes[index++]&255) << 16) +
159 ((bytes[index++]&255) << 24);
160 extent = (bytes[index++]&255) +
161 ((bytes[index++]&255) << 8) +
162 ((bytes[inde
238 toBytes( byte[] bytes, int index ) argument
[all...]
H A DLogControlDescriptor.java109 * @param bytes The array of bytes from which the object is to be constructed.
116 LogControlDescriptor( byte[] bytes, argument
118 headLSN = new LogLSN(bytes,index); index += LogLSN.SIZEOF;
119 tailLSN = new LogLSN(bytes,index); index += LogLSN.SIZEOF;
120 nextLSN = new LogLSN(bytes,index); index += LogLSN.SIZEOF;
125 * @param bytes The array of bytes into which the object is to be copied.
128 * @return Number of bytes copied.
132 final int toBytes( byte[] bytes, argument
[all...]
H A DLogRecordEnding.java106 * @param bytes The array of bytes from which the object is to be constructed.
113 LogRecordEnding( byte[] bytes, argument
115 currentLSN = new LogLSN(bytes,index);
120 * @param bytes The array of bytes into which the object is to be copied.
123 * @return Number of bytes copied.
127 final int toBytes( byte[] bytes, argument
129 currentLSN.toBytes(bytes,index);
H A DGlobalTID.java173 * @param The array of bytes.
179 GlobalTID( byte[] bytes ) {
180 int formatID = (bytes[0]&255) +
181 ((bytes[1]&255) << 8) +
182 ((bytes[2]&255) << 16) +
183 ((bytes[3]&255) << 24);
184 int bqualLength = (bytes[4]&255) +
185 ((bytes[5]&255) << 8) +
186 ((bytes[6]&255) << 16) +
187 ((bytes[
504 fromTIDBytes(byte[] bytes) argument
[all...]
/glassfish-3.1.2/web/web-naming/src/main/java/org/apache/naming/
H A DUtil.java161 // use the specified encoding to extract bytes out of the
164 byte[] bytes = null;
167 bytes = str.getBytes(Charset.defaultCharset());
169 bytes = str.getBytes(Charsets.lookupCharset(enc));
173 return urlDecode(bytes, enc);
180 * @param bytes The url-encoded byte array
184 public static String urlDecode(byte[] bytes) { argument
185 return urlDecode(bytes, null);
191 * @param bytes The url-encoded byte array
196 public static String urlDecode(byte[] bytes, Strin argument
[all...]
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/annotation/introspection/
H A DConstantPoolInfo.java63 byte[] bytes = new byte[Short.MAX_VALUE]; field in class:ConstantPoolInfo
86 buffer.get(bytes, 0, length);
88 * bytes to Ljava since all annotations are in the java
92 if (bytes[0]=='L' && bytes[1]=='j' && bytes[2]=='a') {
95 stringValue = new String(bytes, 0, length,"US-ASCII");
97 stringValue = new String(bytes, 0, length);
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/admin/adapter/
H A DUtils.java65 byte[] bytes = new byte[1024];
68 while ((read = bis.read(bytes)) != -1) {
69 sb.append(new String(bytes, 0, read, "UTF-8"));
H A DAdminConsoleAdapter.java291 byte[] bytes = (":::" + status).getBytes("UTF-8");
292 res.setContentLength(bytes.length);
293 ob.write(bytes, 0, bytes.length);
701 byte[] bytes;
710 bytes = localHtml.replace(MYURL_TOKEN, hp).getBytes("UTF-8");
712 bytes = ("Catastrophe:" + ex.getMessage()).getBytes("UTF-8");
714 res.setContentLength(bytes.length);
715 ob.write(bytes, 0, bytes
[all...]
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/util/
H A DHexUtils.java121 byte[] bytes = new byte[bLength];
144 bytes[i] = b;
146 return bytes;
155 * @param bytes Byte array representation
157 public static char[] convert(byte bytes[]) { argument
159 char[] arr = new char[bytes.length * 2];
160 for (int i = 0; i < bytes.length; i++) {
161 arr[2*i] = convertDigit((int) (bytes[i] >> 4));
162 arr[2*i + 1] = convertDigit((int) (bytes[i] & 0x0f));
170 * bytes
[all...]
H A DRequestUtil.java289 // use the specified encoding to extract bytes out of the
292 byte[] bytes = null;
295 bytes = data.getBytes(Charset.defaultCharset());
297 bytes = data.getBytes(Charsets.lookupCharset(encoding));
302 parseParameters(map, bytes, encoding);
344 * @param bytes The url-encoded byte array
348 public static String urlDecode(byte[] bytes) { argument
351 return Util.urlDecode(bytes);
358 * @param bytes The url-encoded byte array
363 public static String urlDecode(byte[] bytes, Strin argument
[all...]
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/appserv/web/cache/filter/
H A DHttpCacheEntry.java50 * a) response bytes b) response headers c) expiryTime
72 byte[] bytes; field in class:HttpCacheEntry
109 bytes = null;
116 * @return size of this entry in bytes
121 if (bytes != null) {
122 size = bytes.length;
125 // size of response bytes plus headers (each approx 20 chars or 40 bytes)
/glassfish-3.1.2/webservices/soap-tcp/src/main/java/org/glassfish/webservices/transport/tcp/
H A DWSTCPProtocolFinder.java64 byte[] bytes;
66 bytes = TCPConstants.PROTOCOL_SCHEMA.getBytes("US-ASCII");
69 bytes = TCPConstants.PROTOCOL_SCHEMA.getBytes();
72 PROTOCOL_SCHEMA_BYTES = bytes;
/glassfish-3.1.2/persistence/cmp/enhancer/src/main/java/com/sun/jdo/api/persistence/enhancer/
H A DByteCodeEnhancerHelper.java148 byte [] bytes = tmp.toByteArray ();
151 modifyZipEntry (out_entry, bytes, crc32);
152 in = new ByteArrayInputStream (bytes);
237 * @param bytes The uncompressed byte representation of the classfile.
242 byte [] bytes,
246 entry.setSize (bytes.length);
250 crc32.update (bytes);
252 entry.setCompressedSize (bytes.length);
241 modifyZipEntry(ZipEntry entry, byte [] bytes, CRC32 crc32) argument
/glassfish-3.1.2/common/common-util/src/test/java/org/glassfish/common/util/admin/locking/
H A DTestClient.java64 byte bytes[] = new byte[100];
89 System.in.read(bytes);
/glassfish-3.1.2/persistence/cmp/enhancer/src/main/java/com/sun/jdo/api/persistence/enhancer/classfile/
H A DInsnReadEnv.java61 InsnReadEnv(byte[] bytes, CodeEnv codeEnv) { argument
62 this.byteCodes = bytes;
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/ssi/
H A DSSIFilter.java144 byte[] bytes = basos.toByteArray();
162 new InputStreamReader(new ByteArrayInputStream(bytes), encoding);
171 // set output bytes
173 bytes = ssiout.toByteArray();
183 res.setContentLength(bytes.length);
203 res.getWriter().write(new String(bytes, Charset.defaultCharset()));
205 out.write(bytes);
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/uuid/
H A DUuidUtil.java107 byte[] bytes = InetAddress.getLocalHost().getAddress();
111 for (int i = 0; i < bytes.length; i++) {
112 s = Integer.toHexString(bytes[i]);
114 if (bytes[i] < 0) {
/glassfish-3.1.2/common/amx-core/src/main/java/org/glassfish/admin/amx/util/
H A DStringUtil.java122 public static String toHexString(byte[] bytes) argument
124 return (toHexString(bytes, null));
127 public static String toHexString(byte[] bytes, String delim) argument
131 if (bytes.length == 0)
137 for (int i = 0; i < bytes.length; ++i)
139 buf.append(toHexString(bytes[i]));
144 for (int i = 0; i < bytes.length; ++i)
146 buf.append(toHexString(bytes[i]) + delim);
/glassfish-3.1.2/security/core/src/main/java/com/sun/enterprise/security/auth/realm/jdbc/
H A DJDBCRealm.java472 byte[] bytes = null;
475 bytes = Utility.convertCharArrayToByteArray(password, charSet);
480 bytes = md.digest(bytes);
486 result = hexEncode(bytes);
488 result = base64Encode(bytes).toCharArray();
490 result = Utility.convertByteArrayToCharArray(bytes, charSet);
495 private char[] hexEncode(byte[] bytes) { argument
496 StringBuilder sb = new StringBuilder(2 * bytes.length);
497 for (int i = 0; i < bytes
508 base64Encode(byte[] bytes) argument
[all...]
/glassfish-3.1.2/admin/jmx-remote/server/src/main/java/com/sun/enterprise/admin/jmx/remote/server/servlet/
H A DRemoteJmxConnectorServlet.java158 byte[] bytes = new byte[8192];
160 while (in.read(bytes) != -1)
171 byte[] bytes = new byte[8192];
173 while ( (len = in.read(bytes)) != -1) {
174 o.write(bytes, 0, len);
253 /** Returns the size of given seialized object in bytes.
/glassfish-3.1.2/admin/jmx-remote/client/src/main/java/com/sun/enterprise/admin/jmx/remote/comm/
H A DServletConnection.java185 byte[] bytes = new byte[8192];
189 while ((len = in.read(bytes)) != -1) {
190 out.write(bytes, 0, len);
/glassfish-3.1.2/installer/src/cpp/share/launcher/
H A DJavaPropertiesToC.java163 byte[] bytes = value.getBytes("UTF8");
164 for (int j = 0; j < bytes.length; j++)
166 int k = bytes[j];
/glassfish-3.1.2/tests/amx/src/org/glassfish/admin/amxtest/base/
H A DUploadDownloadMgrTest.java100 final byte[] bytes = new byte[actual];
101 done = mgr.uploadBytes(uploadID, bytes);
107 printElapsed("UploadDownloadMgr.upload: " + totalSize + " bytes", start);
145 totalSize + " bytes", start);
170 final byte[] bytes = mgr.downloadBytes(id, actualChunkSize);
171 doneSoFar += bytes.length;
175 testSize + " bytes" + " chunksize = " + actualChunkSize, start);

Completed in 1674 milliseconds

12