@Override public byte[][] getValuesAsByteArrays() { return attribute.getValueByteArrays(); }
/** * Retrieves an array of the values for this attribute. * * @return An array of the values for this attribute. */ public byte[][] getByteValueArray() { return attribute.getValueByteArrays(); }
@Override public byte[][] getValuesAsByteArrays() { return attribute.getValueByteArrays(); }
/** * Retrieves an enumeration over the binary values for this attribute. * * @return An enumeration over the binary values for this attribute. */ public Enumeration<byte[]> getByteValues() { return new IterableEnumeration<byte[]>( Arrays.asList(attribute.getValueByteArrays())); }
/** * Creates a compact attribute from the provided attribute. * * @param attribute The attribute to use to create this compact attribute. */ CompactAttribute(final Attribute attribute) { name = internName(attribute.getName()); values = attribute.getValueByteArrays(); }
/** * Creates a compact attribute from the provided attribute. * * @param attribute The attribute to use to create this compact attribute. */ CompactAttribute(final Attribute attribute) { name = internName(attribute.getName()); values = attribute.getValueByteArrays(); }
/** * Retrieves the set of values for the specified attribute as byte arrays, if * available. * * @param attributeName The name of the attribute for which to retrieve the * values. It must not be {@code null}. * * @return The set of values for the specified attribute as byte arrays, or * {@code null} if that attribute is not available. */ public byte[][] getAttributeValueByteArrays(final String attributeName) { ensureNotNull(attributeName); final Attribute a = attributes.get(toLowerCase(attributeName)); if (a == null) { return null; } else { return a.getValueByteArrays(); } }
/** * Retrieves the set of values for the specified attribute as byte arrays, if * available. * * @param attributeName The name of the attribute for which to retrieve the * values. It must not be {@code null}. * * @return The set of values for the specified attribute as byte arrays, or * {@code null} if that attribute is not available. */ public byte[][] getAttributeValueByteArrays(final String attributeName) { ensureNotNull(attributeName); final Attribute a = attributes.get(toLowerCase(attributeName)); if (a == null) { return null; } else { return a.getValueByteArrays(); } }
for (final byte[] binVal: a.getValueByteArrays()) values.add(Base64.encode(binVal));
for (final byte[] v : a.getValueByteArrays())
for (final Attribute a : attrs) for (final byte[] value : a.getValueByteArrays())
for (final byte[] v : a.getValueByteArrays())
for (final byte[] value : a.getValueByteArrays())
for (final byte[] value : a.getValueByteArrays())
for (final byte[] value : a.getValueByteArrays())
final byte[][] originalValues = a.getValueByteArrays(); final byte[][] scrambledValues = new byte[originalValues.length][]; for (int i=0; i < originalValues.length; i++)
attributeToAdd.getValueByteArrays());