/forgerock/opendj2-jel-hg/src/guitools/org/opends/guitools/controlpanel/datamodel/ |
H A D | BinaryValue.java | 46 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 D | RecordingInputStream.java | 34 * 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 D | RecordingInputStream.java | 33 * 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 D | BinaryValuePanel.java | 77 * @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 D | Longs.java | 64 * @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 D | LegacySessionIDExtensions.java | 76 // 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 D | BinaryValue.java | 47 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 D | BinaryValuePanel.java | 76 * @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 D | RecordingInputStream.java | 37 * 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 D | Main.java | 181 * @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 D | LegacySessionIDExtensions.java | 78 // 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 D | UpdateMsg.java | 83 * @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 D | SizeUnit.java | 45 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 D | EntryIDSet.java | 82 * @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 D | ID2Entry.java | 141 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 D | JebFormat.java | 67 * 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 D | SortValuesSet.java | 66 * @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 D | SubstringIndexer.java | 223 * @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 D | ByteArrayScanner.java | 51 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 D | SizeUnit.java | 46 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 D | EntryIDSet.java | 83 * @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 D | ID2Entry.java | 142 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 D | JebFormat.java | 68 * 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 D | SortValuesSet.java | 67 * @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 D | SubstringIndexer.java | 224 * @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);
|