Klasse Base64Datatype

java.lang.Object
org.jupnp.model.types.AbstractDatatype<byte[]>
org.jupnp.model.types.Base64Datatype
Alle implementierten Schnittstellen:
Datatype<byte[]>

public class Base64Datatype extends AbstractDatatype<byte[]>
Autor:
Christian Bauer
  • Konstruktordetails

    • Base64Datatype

      public Base64Datatype()
  • Methodendetails

    • getValueType

      public Class<byte[]> getValueType()
      Setzt außer Kraft:
      getValueType in Klasse AbstractDatatype<byte[]>
    • valueOf

      public byte[] valueOf(String s) throws InvalidValueException
      Beschreibung aus Schnittstelle kopiert: Datatype
      Transforms a string representation into a value of the supported type.
      Angegeben von:
      valueOf in Schnittstelle Datatype<byte[]>
      Setzt außer Kraft:
      valueOf in Klasse AbstractDatatype<byte[]>
      Parameter:
      s - The string representation of a value.
      Gibt zurück:
      The converted value or null if the string was null or empty.
      Löst aus:
      InvalidValueException - If the string couldn't be parsed.
    • getString

      public String getString(byte[] value) throws InvalidValueException
      Beschreibung aus Schnittstelle kopiert: Datatype
      Transforms a value supported by this datatype into a string representation.

      This method calls Datatype.isValid(Object) before converting the value, it throws an exception if validation fails.

      Angegeben von:
      getString in Schnittstelle Datatype<byte[]>
      Setzt außer Kraft:
      getString in Klasse AbstractDatatype<byte[]>
      Parameter:
      value - The value to transform.
      Gibt zurück:
      The transformed value as a string, or an empty string when the value is null, never returns null.
      Löst aus:
      InvalidValueException