Searched defs:bytes (Results 151 - 175 of 280) sorted by relevance

1234567891011>>

/forgerock/opendj2-hg/src/server/org/opends/server/types/
H A DByteStringBuilder.java48 * A mutable sequence of bytes backed by a byte array.
331 // The number of bytes to expose from the buffer.
338 * bytes.
458 * The number of bytes to be appended from {@code buffer}.
488 * @param bytes
493 public ByteStringBuilder append(ByteSequence bytes) argument
495 return bytes.copyTo(this);
508 * The number of bytes to be appended from {@code reader}.
543 * The maximum number of bytes to be appended from {@code
545 * @return The number of bytes rea
[all...]
/forgerock/opendj2-jel-hg/src/guitools/org/opends/guitools/controlpanel/ui/
H A DBinaryAttributeEditorPanel.java357 byte[] bytes = new byte[2 * 1024];
364 int len = in.read(bytes);
371 out.write(bytes, 0, len);
614 * @param bytes the byte array.
616 static void updateBase64(JTextComponent base64, byte[] bytes) argument
618 if (bytes.length < MAX_BASE64_TO_DISPLAY)
620 BinaryValue value = BinaryValue.createBase64(bytes);
633 * @param bytes the array of bytes containing the image.
635 static void updateImage(JLabel lImage, byte[] bytes) argument
[all...]
/forgerock/opendj2-jel-hg/src/guitools/org/opends/guitools/controlpanel/ui/components/
H A DBinaryCellPanel.java124 * Returns the message describing the provided array of bytes.
125 * @param value the array of bytes.
126 * @param isImage whether the array of bytes represents an image or not.
127 * @return the message describing the provided array of bytes.
205 * @param value the binary value as an array of bytes.
369 private Icon getIcon(byte[] bytes) argument
371 return Utilities.createImageIcon(bytes, THUMBNAIL_HEIGHT,
/forgerock/opendj2-jel-hg/src/server/org/opends/server/backends/jeb/importLDIF/
H A DImportIDSet.java287 * @param bytes The byte array read from JEB.
290 public void remove(byte[] bytes, ImportIDSet importIdSet) argument
292 boolean dbUndefined = ((bytes[0] & 0x80) == 0x80);
301 array = JebFormat.entryIDListFromDatabase(bytes);
322 * @param bytes The byte array of IDs read from a DB.
327 public boolean merge(byte[] bytes, ImportIDSet importIdSet) argument
331 incrementLimitCount = mergeCount(bytes, importIdSet);
333 boolean dbUndefined = ((bytes[0] & 0x80) == 0x80);
345 array = JebFormat.entryIDListFromDatabase(bytes);
559 private byte[] encode(byte[] bytes) argument
[all...]
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/
H A DBinaryAttributeEditorPanel.java345 byte[] bytes = new byte[2 * 1024];
352 int len = in.read(bytes);
359 out.write(bytes, 0, len);
599 * @param bytes the byte array.
601 static void updateBase64(JTextComponent base64, byte[] bytes) argument
603 if (bytes.length < MAX_BASE64_TO_DISPLAY)
605 BinaryValue value = BinaryValue.createBase64(bytes);
618 * @param bytes the array of bytes containing the image.
620 static void updateImage(JLabel lImage, byte[] bytes) argument
[all...]
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/components/
H A DBinaryCellPanel.java123 * Returns the message describing the provided array of bytes.
124 * @param value the array of bytes.
125 * @param isImage whether the array of bytes represents an image or not.
126 * @return the message describing the provided array of bytes.
203 * @param value the binary value as an array of bytes.
365 private Icon getIcon(byte[] bytes) argument
367 return Utilities.createImageIcon(bytes, THUMBNAIL_HEIGHT,
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/
H A DID2Entry.java140 private Entry decode(ByteString bytes, CompressedSchema compressedSchema) argument
144 byte formatVersion = bytes.byteAt(0);
151 ASN1Reader reader = ASN1.getReader(bytes.subSequence(1, bytes.length()));
270 * the data bytes.
284 * @param bytes A byte array containing the encoded tree value.
296 static Entry entryFromDatabase(ByteString bytes, argument
303 return codec.decode(bytes, compressedSchema);
H A DTracedStorage.java583 private static String hex(final ByteSequence bytes) argument
585 return bytes != null ? bytes.toByteString().toASCIIString() : null;
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/extensions/
H A DSASLContext.java570 * @param bytes
575 * The length from the offset of the number of bytes to unwrap.
576 * @return A byte array containing the clear or unwrapped bytes.
578 * If the bytes cannot be unwrapped.
580 byte[] unwrap(final byte[] bytes, final int offset, final int len) argument
583 return saslServer.unwrap(bytes, offset, len);
598 * The length from the offset of the number of bytes to wrap.
599 * @return A byte array containing the wrapped bytes.
601 * If the clear bytes cannot be wrapped.
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/protocols/internal/
H A DInternalLDAPOutputStream.java91 * An adaptor class for reading from a save buffer and the bytes
94 * Since the bytes being written are only available duing the write
97 * save buffer first before the actual bytes being written to ensure
98 * bytes are read in the same order as they are written.
106 // The number of available bytes is the sum of the save buffer
131 public int read(byte[] bytes) argument
133 return read(bytes, 0, bytes.length);
276 * @param len The number of bytes to read from the array.
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/
H A DByteArrayBuilder.java248 * Append all the bytes from the byte array to this ByteArrayBuilder.
250 * @param bytes
254 public ByteArrayBuilder appendByteArray(byte[] bytes) argument
256 builder.appendBytes(bytes);
261 * Append all the bytes from the byte array to this ByteArrayBuilder
268 * @param bytes
272 public ByteArrayBuilder appendZeroTerminatedByteArray(byte[] bytes) argument
274 builder.appendBytes(bytes);
317 * Returns a new ASN1Writer that will append bytes to this ByteArrayBuilder.
319 * @return a new ASN1Writer that will append bytes t
366 public static int bytes(int nbFields) method in class:ByteArrayBuilder
[all...]
H A DLDAPUpdateMsg.java67 protected byte[] bytes; field in class:LDAPUpdateMsg
211 bytes = getBytes(ProtocolVersion.getCurrentVersion());
270 if (bytes == null)
273 bytes = getBytes_V45(protocolVersion);
275 return bytes;
396 * Return the number of bytes used by the header.
397 * @return The number of bytes used by the header.
/forgerock/opendj-b2.6/tests/unit-tests-testng/src/server/org/opends/server/util/
H A DTestStaticUtils.java152 final byte[] bytes = inputString.getBytes("UTF-8");
153 Assert.assertEquals(StaticUtils.decodeUTF8(bytes), inputString);
271 * @param bytes
279 public void testBytesToHex(byte[] bytes, String expected) argument
281 Assert.assertEquals(StaticUtils.bytesToHex(bytes), expected);
288 * @param bytes
296 public void testBytesToHexByteBuffer(byte[] bytes, String expected) argument
298 ByteBuffer buffer = (bytes != null) ? ByteBuffer.wrap(bytes) : null;
548 * @param bytes
554 testHexStringToByteArray(String hexString, byte[] bytes) argument
[all...]
/forgerock/opendj2/tests/unit-tests-testng/src/server/org/opends/server/util/
H A DTestStaticUtils.java151 final byte[] bytes = inputString.getBytes("UTF-8");
152 Assert.assertEquals(StaticUtils.decodeUTF8(bytes), inputString);
270 * @param bytes
278 public void testBytesToHex(byte[] bytes, String expected) argument
280 Assert.assertEquals(StaticUtils.bytesToHex(bytes), expected);
287 * @param bytes
295 public void testBytesToHexByteBuffer(byte[] bytes, String expected) argument
297 ByteBuffer buffer = (bytes != null) ? ByteBuffer.wrap(bytes) : null;
547 * @param bytes
553 testHexStringToByteArray(String hexString, byte[] bytes) argument
[all...]
/forgerock/opendj2.6.2/tests/unit-tests-testng/src/server/org/opends/server/util/
H A DTestStaticUtils.java152 final byte[] bytes = inputString.getBytes("UTF-8");
153 Assert.assertEquals(StaticUtils.decodeUTF8(bytes), inputString);
271 * @param bytes
279 public void testBytesToHex(byte[] bytes, String expected) argument
281 Assert.assertEquals(StaticUtils.bytesToHex(bytes), expected);
288 * @param bytes
296 public void testBytesToHexByteBuffer(byte[] bytes, String expected) argument
298 ByteBuffer buffer = (bytes != null) ? ByteBuffer.wrap(bytes) : null;
548 * @param bytes
554 testHexStringToByteArray(String hexString, byte[] bytes) argument
[all...]
/forgerock/opendj2-hg/tests/unit-tests-testng/src/server/org/opends/server/util/
H A DTestStaticUtils.java151 final byte[] bytes = inputString.getBytes("UTF-8");
152 Assert.assertEquals(StaticUtils.decodeUTF8(bytes), inputString);
270 * @param bytes
278 public void testBytesToHex(byte[] bytes, String expected) argument
280 Assert.assertEquals(StaticUtils.bytesToHex(bytes), expected);
287 * @param bytes
295 public void testBytesToHexByteBuffer(byte[] bytes, String expected) argument
297 ByteBuffer buffer = (bytes != null) ? ByteBuffer.wrap(bytes) : null;
547 * @param bytes
553 testHexStringToByteArray(String hexString, byte[] bytes) argument
[all...]
/forgerock/opendj2-jel-hg/tests/unit-tests-testng/src/server/org/opends/server/util/
H A DTestStaticUtils.java152 final byte[] bytes = inputString.getBytes("UTF-8");
153 Assert.assertEquals(StaticUtils.decodeUTF8(bytes), inputString);
271 * @param bytes
279 public void testBytesToHex(byte[] bytes, String expected) argument
281 Assert.assertEquals(StaticUtils.bytesToHex(bytes), expected);
288 * @param bytes
296 public void testBytesToHexByteBuffer(byte[] bytes, String expected) argument
298 ByteBuffer buffer = (bytes != null) ? ByteBuffer.wrap(bytes) : null;
548 * @param bytes
554 testHexStringToByteArray(String hexString, byte[] bytes) argument
[all...]
/forgerock/opendj-v3/opendj-server-legacy/src/test/java/org/opends/server/util/
H A DTestStaticUtils.java153 final byte[] bytes = inputString.getBytes("UTF-8");
154 Assert.assertEquals(StaticUtils.decodeUTF8(bytes), inputString);
241 * @param bytes
249 public void testBytesToHex(byte[] bytes, String expected) argument
251 Assert.assertEquals(StaticUtils.bytesToHex(bytes), expected);
258 * @param bytes
266 public void testBytesToHexByteBuffer(byte[] bytes, String expected) argument
268 ByteBuffer buffer = (bytes != null) ? ByteBuffer.wrap(bytes) : null;
505 * @param bytes
511 testHexStringToByteArray(String hexString, byte[] bytes) argument
[all...]
/forgerock/opendj2/src/server/org/opends/server/backends/jeb/
H A DAttributeIndex.java776 * @param bytes The byte array containing the value.
781 private byte[] makeSubstringKey(byte[] bytes, int pos, int len) argument
784 System.arraycopy(bytes, pos, keyBytes, 0, len);
825 * @param bytes A normalized substring of an attribute value.
828 private EntryIDSet matchSubstring(byte[] bytes) argument
834 if (bytes.length < substrLength)
839 byte[] lower = makeSubstringKey(bytes, 0, bytes.length);
844 byte[] upper = makeSubstringKey(bytes, 0, bytes
913 matchInitialSubstring(byte[] bytes) argument
[all...]
/forgerock/opendj-b2.6/src/server/org/opends/server/backends/jeb/
H A DAttributeIndex.java775 * @param bytes The byte array containing the value.
780 private byte[] makeSubstringKey(byte[] bytes, int pos, int len) argument
783 System.arraycopy(bytes, pos, keyBytes, 0, len);
824 * @param bytes A normalized substring of an attribute value.
827 private EntryIDSet matchSubstring(byte[] bytes) argument
833 if (bytes.length < substrLength)
838 byte[] lower = makeSubstringKey(bytes, 0, bytes.length);
843 byte[] upper = makeSubstringKey(bytes, 0, bytes
912 matchInitialSubstring(byte[] bytes) argument
[all...]
/forgerock/opendj2.6.2/src/server/org/opends/server/backends/jeb/
H A DAttributeIndex.java776 * @param bytes The byte array containing the value.
781 private byte[] makeSubstringKey(byte[] bytes, int pos, int len) argument
784 System.arraycopy(bytes, pos, keyBytes, 0, len);
825 * @param bytes A normalized substring of an attribute value.
828 private EntryIDSet matchSubstring(byte[] bytes) argument
834 if (bytes.length < substrLength)
839 byte[] lower = makeSubstringKey(bytes, 0, bytes.length);
844 byte[] upper = makeSubstringKey(bytes, 0, bytes
913 matchInitialSubstring(byte[] bytes) argument
[all...]
/forgerock/opendj2-hg/src/server/org/opends/server/backends/jeb/
H A DAttributeIndex.java776 * @param bytes The byte array containing the value.
781 private byte[] makeSubstringKey(byte[] bytes, int pos, int len) argument
784 System.arraycopy(bytes, pos, keyBytes, 0, len);
825 * @param bytes A normalized substring of an attribute value.
828 private EntryIDSet matchSubstring(byte[] bytes) argument
834 if (bytes.length < substrLength)
839 byte[] lower = makeSubstringKey(bytes, 0, bytes.length);
844 byte[] upper = makeSubstringKey(bytes, 0, bytes
913 matchInitialSubstring(byte[] bytes) argument
[all...]
/forgerock/opendj2-jel-hg/src/server/org/opends/server/backends/jeb/
H A DAttributeIndex.java775 * @param bytes The byte array containing the value.
780 private byte[] makeSubstringKey(byte[] bytes, int pos, int len) argument
783 System.arraycopy(bytes, pos, keyBytes, 0, len);
824 * @param bytes A normalized substring of an attribute value.
827 private EntryIDSet matchSubstring(byte[] bytes) argument
833 if (bytes.length < substrLength)
838 byte[] lower = makeSubstringKey(bytes, 0, bytes.length);
843 byte[] upper = makeSubstringKey(bytes, 0, bytes
912 matchInitialSubstring(byte[] bytes) argument
[all...]
/forgerock/openam-v13/openam-federation/openam-federation-library/src/main/java/com/sun/identity/saml/common/
H A DSAMLUtils.java279 byte bytes[] = new byte[SAMLConstants.ID_LENGTH];
280 random.nextBytes(bytes);
297 if (idBytes.length < bytes.length) {
299 bytes[bytes.length - i] = idBytes[idBytes.length - i];
303 return byteArrayToString(bytes);
479 byte bytes[] = new byte[chars.length];
481 bytes[i] = (byte) chars[i];
483 return bytes;
927 * @param bytes byt
930 getResponse(byte [] bytes) argument
[all...]
/forgerock/openam/openam-federation/openam-federation-library/src/main/java/com/sun/identity/saml/common/
H A DSAMLUtils.java281 byte bytes[] = new byte[SAMLConstants.ID_LENGTH];
282 random.nextBytes(bytes);
299 if (idBytes.length < bytes.length) {
301 bytes[bytes.length - i] = idBytes[idBytes.length - i];
305 return byteArrayToString(bytes);
481 byte bytes[] = new byte[chars.length];
483 bytes[i] = (byte) chars[i];
485 return bytes;
929 * @param bytes byt
932 getResponse(byte [] bytes) argument
[all...]

Completed in 670 milliseconds

1234567891011>>