Searched defs:bytes (Results 51 - 75 of 280) sorted by relevance

1234567891011>>

/forgerock/opendj2-jel-hg/src/guitools/org/opends/guitools/controlpanel/datamodel/
H A DBinaryValue.java46 private byte[] bytes; field in class:BinaryValue
87 value.bytes = value.getBytes();
93 * Creates a binary value using an array of bytes.
94 * @param bytes the byte array.
97 public static BinaryValue createBase64(byte[] bytes) argument
101 value.bytes = bytes;
108 * Creates a binary value using an array of bytes and a file.
109 * @param bytes the bytes i
113 createFromFile(byte[] bytes, File file) argument
[all...]
/forgerock/opendj2-jel-hg/src/server/org/opends/server/types/
H A DRecordingInputStream.java34 * InputStream. The recorded bytes will append to any previous
35 * recorded bytes until the clear method is called.
72 public int read(byte[] bytes) throws IOException { argument
73 int bytesRead = parentStream.read(bytes);
76 buffer.append(bytes, 0, bytesRead);
85 public int read(byte[] bytes, int i, int i1) throws IOException { argument
86 int bytesRead = parentStream.read(bytes, i, i1);
89 buffer.append(bytes, i, bytesRead);
143 * Retrieve the bytes read from this input stream since the last
146 * @return the bytes rea
[all...]
/forgerock/opendj2-hg/src/server/org/opends/server/types/
H A DRecordingInputStream.java33 * InputStream. The recorded bytes will append to any previous
34 * recorded bytes until the clear method is called.
71 public int read(byte[] bytes) throws IOException { argument
72 int bytesRead = parentStream.read(bytes);
75 buffer.append(bytes, 0, bytesRead);
84 public int read(byte[] bytes, int i, int i1) throws IOException { argument
85 int bytesRead = parentStream.read(bytes, i, i1);
88 buffer.append(bytes, i, bytesRead);
142 * Retrieve the bytes read from this input stream since the last
145 * @return the bytes rea
[all...]
/forgerock/opendj2-jel-hg/src/guitools/org/opends/guitools/controlpanel/ui/
H A DBinaryValuePanel.java77 * @param bytes the binary value.
79 public void setValue(final String attr, final byte[] bytes) argument
81 final boolean launchBackground = lastBytes != bytes;
82 lastBytes = bytes;
101 BinaryAttributeEditorPanel.updateImage(lImage, bytes);
113 BinaryAttributeEditorPanel.updateBase64(base64, bytes);
/forgerock/opendj2-jel-hg/src/server/org/opends/server/backends/jeb/
H A DLongs.java64 * @param bytes The encoded value.
66 void decode(byte[] bytes) argument
68 if (bytes == null)
74 int count = bytes.length / 8;
80 v |= (bytes[pos++] & 0xFFL) << 56;
81 v |= (bytes[pos++] & 0xFFL) << 48;
82 v |= (bytes[pos++] & 0xFFL) << 40;
83 v |= (bytes[pos++] & 0xFFL) << 32;
84 v |= (bytes[pos++] & 0xFFL) << 24;
85 v |= (bytes[po
115 encode(byte[] bytes) argument
[all...]
/forgerock/openam-v13/openam-core/src/main/java/com/iplanet/dpro/session/
H A DLegacySessionIDExtensions.java76 // The bytes are actually written via DataOutputStream#writeUTF which uses "modified UTF-8". We decode this
82 final byte[] bytes = Base64.decode(extensionPart);
84 if (bytes == null) {
89 for (int i = 0; i < bytes.length;) {
90 // Data is encoded as a 2-byte unsigned short length, followed by 'length' bytes of UTF-8
91 int length = parseUnsignedShort(bytes, i);
93 String key = decoder.decode(ByteBuffer.wrap(bytes, i, length)).toString();
95 length = parseUnsignedShort(bytes, i);
97 String val = decoder.decode(ByteBuffer.wrap(bytes, i, length)).toString();
154 * Parses the next two bytes fro
162 parseUnsignedShort(final byte[] bytes, final int i) argument
[all...]
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/datamodel/
H A DBinaryValue.java47 private byte[] bytes; field in class:BinaryValue
88 value.bytes = value.getBytes();
94 * Creates a binary value using an array of bytes.
95 * @param bytes the byte array.
98 public static BinaryValue createBase64(byte[] bytes) argument
102 value.bytes = bytes;
109 * Creates a binary value using an array of bytes and a file.
110 * @param bytes the bytes i
114 createFromFile(byte[] bytes, File file) argument
[all...]
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/
H A DBinaryValuePanel.java76 * @param bytes the binary value.
78 public void setValue(final String attr, final byte[] bytes) argument
80 final boolean launchBackground = lastBytes != bytes;
81 lastBytes = bytes;
98 BinaryAttributeEditorPanel.updateImage(lImage, bytes);
110 BinaryAttributeEditorPanel.updateBase64(base64, bytes);
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/types/
H A DRecordingInputStream.java37 * InputStream. The recorded bytes will append to any previous
38 * recorded bytes until the clear method is called.
72 public int read(byte[] bytes) throws IOException { argument
73 int bytesRead = parentStream.read(bytes);
76 buffer.appendBytes(bytes, 0, bytesRead);
83 public int read(byte[] bytes, int i, int i1) throws IOException { argument
84 int bytesRead = parentStream.read(bytes, i, i1);
87 buffer.appendBytes(bytes, i, bytesRead);
129 * Retrieve the bytes read from this input stream since the last
132 * @return the bytes rea
[all...]
/forgerock/openidm-v4/openidm-crypto/src/main/java/org/forgerock/openidm/crypto/impl/
H A DMain.java181 * @param bytes
184 private static String byteArrayToHexString(byte[] bytes) { argument
185 StringBuilder rc = new StringBuilder(bytes.length * 2);
186 for (int i = 0; i < bytes.length; i++) {
187 rc.append(HEX_TABLE[0xFF & bytes[i]]);
/forgerock/openam/openam-core/src/main/java/com/iplanet/dpro/session/
H A DLegacySessionIDExtensions.java78 // The bytes are actually written via DataOutputStream#writeUTF which uses "modified UTF-8". We decode this
84 final byte[] bytes = Base64.decode(extensionPart);
86 if (bytes == null) {
91 for (int i = 0; i < bytes.length;) {
92 // Data is encoded as a 2-byte unsigned short length, followed by 'length' bytes of UTF-8
93 int length = parseUnsignedShort(bytes, i);
95 String key = decoder.decode(ByteBuffer.wrap(bytes, i, length)).toString();
97 length = parseUnsignedShort(bytes, i);
99 String val = decoder.decode(ByteBuffer.wrap(bytes, i, length)).toString();
156 * Parses the next two bytes fro
164 parseUnsignedShort(final byte[] bytes, final int i) argument
[all...]
/forgerock/opendj-b2.6/src/server/org/opends/server/replication/protocol/
H A DUpdateMsg.java83 * @param bytes A Byte Array with the encoded form of the message.
85 * @throws DataFormatException If bytes is not valid.
87 UpdateMsg(byte[] bytes) throws DataFormatException argument
90 int pos = decodeHeader(MSG_TYPE_GENERIC_UPDATE, bytes);
92 /* Read the payload : all the remaining bytes but the terminating 0 */
93 int length = bytes.length - pos;
97 System.arraycopy(bytes, pos, payload, 0, length);
234 * Return the number of bytes used by this message.
236 * @return The number of bytes used by this message.
252 * encode the remaining bytes o
[all...]
/forgerock/opendj2/src/server/org/opends/server/admin/
H A DSizeUnit.java45 BYTES(1L, "b", "bytes"),
101 * Gets the best-fit unit for the specified number of bytes. The
102 * returned unit will be able to represent the number of bytes using
106 * the number of bytes is zero then the {@link #BYTES} unit is
119 * @param bytes
120 * The number of bytes.
123 * If <code>bytes</code> is negative.
126 public static SizeUnit getBestFitUnit(long bytes) argument
128 if (bytes < 0) {
129 throw new IllegalArgumentException("negative number of bytes
180 getBestFitUnitExact(long bytes) argument
[all...]
/forgerock/opendj2/src/server/org/opends/server/backends/jeb/
H A DEntryIDSet.java82 * @param bytes The database value, or null if there are no entry IDs.
84 public EntryIDSet(byte[] keyBytes, byte[] bytes) argument
88 if (bytes == null)
94 if (bytes.length == 0)
100 else if ((bytes[0] & 0x80) == 0x80)
104 undefinedSize = JebFormat.entryIDUndefinedSizeFromDatabase(bytes);
108 // Seems like entry limit has not been exceeded and the bytes is a
110 values = JebFormat.entryIDListFromDatabase(bytes);
H A DID2Entry.java141 private Entry decode(ByteString bytes, CompressedSchema compressedSchema) argument
146 byte formatVersion = bytes.byteAt(0);
155 ASN1Reader reader = ASN1.getReader(bytes.subSequence(1, bytes.length()));
290 * the data bytes.
304 * @param bytes A byte array containing the encoded database value.
316 public static Entry entryFromDatabase(ByteString bytes, argument
323 return codec.decode(bytes, compressedSchema);
H A DJebFormat.java67 * this method will throw an ArrayIndexOutOfBoundsException if the bytes
70 * @param bytes The database value of the entry ID.
73 public static long entryIDFromDatabase(byte[] bytes) argument
79 v |= (bytes[i] & 0xFF);
87 * @param bytes The database value of the entry ID count.
90 public static long entryIDUndefinedSizeFromDatabase(byte[] bytes) argument
92 if(bytes == null)
97 if(bytes.length == 8)
100 v |= (bytes[0] & 0x7F);
104 v |= (bytes[
124 entryIDListFromDatabase(byte[] bytes) argument
153 intArrayFromDatabaseBytes(byte[] bytes) argument
[all...]
H A DSortValuesSet.java66 * @param dataBytes The bytes to decode and construct this set.
343 * @return The encoded bytes representing this set or null if
373 * @param bytes The encoded bytes of a SortValuesSet to decode the size from.
377 public static int getEncodedSize(byte[] bytes, int offset) argument
383 v |= (bytes[i] & 0xFF);
391 * @param bytes The encoded bytes of a SortValuesSet to decode the IDs from.
395 public static long[] getEncodedIDs(byte[] bytes, int offset) argument
397 int length = getEncodedSize(bytes, offse
[all...]
H A DSubstringIndexer.java223 * @param bytes The byte array containing the value
228 private byte[] makeSubstringKey(byte[] bytes, int pos, int len) argument
231 System.arraycopy(bytes, pos, keyBytes, 0, len);
/forgerock/opendj2/src/server/org/opends/server/replication/protocol/
H A DByteArrayScanner.java51 private final ByteSequenceReader bytes; field in class:ByteArrayScanner
58 * @param bytes
61 public ByteArrayScanner(byte[] bytes) argument
63 this.bytes = ByteString.wrap(bytes).asReader();
64 this.byteArray = bytes;
90 return bytes.get();
109 return bytes.getShort();
128 return bytes.getInt();
147 return bytes
[all...]
/forgerock/opendj-b2.6/src/server/org/opends/server/admin/
H A DSizeUnit.java46 BYTES(1L, "b", "bytes"),
102 * Gets the best-fit unit for the specified number of bytes. The
103 * returned unit will be able to represent the number of bytes using
107 * the number of bytes is zero then the {@link #BYTES} unit is
120 * @param bytes
121 * The number of bytes.
124 * If <code>bytes</code> is negative.
127 public static SizeUnit getBestFitUnit(long bytes) argument
129 if (bytes < 0) {
130 throw new IllegalArgumentException("negative number of bytes
181 getBestFitUnitExact(long bytes) argument
[all...]
/forgerock/opendj-b2.6/src/server/org/opends/server/backends/jeb/
H A DEntryIDSet.java83 * @param bytes The database value, or null if there are no entry IDs.
85 public EntryIDSet(byte[] keyBytes, byte[] bytes) argument
89 if (bytes == null)
95 if (bytes.length == 0)
101 else if ((bytes[0] & 0x80) == 0x80)
105 undefinedSize = JebFormat.entryIDUndefinedSizeFromDatabase(bytes);
109 // Seems like entry limit has not been exceeded and the bytes is a
111 values = JebFormat.entryIDListFromDatabase(bytes);
H A DID2Entry.java142 private Entry decode(ByteString bytes, CompressedSchema compressedSchema) argument
147 byte formatVersion = bytes.byteAt(0);
156 ASN1Reader reader = ASN1.getReader(bytes.subSequence(1, bytes.length()));
291 * the data bytes.
305 * @param bytes A byte array containing the encoded database value.
317 public static Entry entryFromDatabase(ByteString bytes, argument
324 return codec.decode(bytes, compressedSchema);
H A DJebFormat.java68 * this method will throw an ArrayIndexOutOfBoundsException if the bytes
71 * @param bytes The database value of the entry ID.
74 public static long entryIDFromDatabase(byte[] bytes) argument
80 v |= (bytes[i] & 0xFF);
88 * @param bytes The database value of the entry ID count.
91 public static long entryIDUndefinedSizeFromDatabase(byte[] bytes) argument
93 if(bytes == null)
98 if(bytes.length == 8)
101 v |= (bytes[0] & 0x7F);
105 v |= (bytes[
125 entryIDListFromDatabase(byte[] bytes) argument
154 intArrayFromDatabaseBytes(byte[] bytes) argument
[all...]
H A DSortValuesSet.java67 * @param dataBytes The bytes to decode and construct this set.
344 * @return The encoded bytes representing this set or null if
374 * @param bytes The encoded bytes of a SortValuesSet to decode the size from.
378 public static int getEncodedSize(byte[] bytes, int offset) argument
384 v |= (bytes[i] & 0xFF);
392 * @param bytes The encoded bytes of a SortValuesSet to decode the IDs from.
396 public static long[] getEncodedIDs(byte[] bytes, int offset) argument
398 int length = getEncodedSize(bytes, offse
[all...]
H A DSubstringIndexer.java224 * @param bytes The byte array containing the value
229 private byte[] makeSubstringKey(byte[] bytes, int pos, int len) argument
232 System.arraycopy(bytes, pos, keyBytes, 0, len);

Completed in 123 milliseconds

1234567891011>>