Class URI

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>

public class URI extends AbstractXJdfType<String,URI>
Implementation of the XJDF URI data type.
  • Constructor Details

    • URI

      public URI()
      Constructor.
    • URI

      public URI(String sourceUri) throws URISyntaxException
      Constructor. Using this constructor will not package the file.
      Parameters:
      sourceUri - Source uri of the file.
      Throws:
      URISyntaxException
    • URI

      public URI(URI sourceUri)
      Constructor. Using this constructor will not package the file.
      Parameters:
      sourceUri - Source uri of the file.
    • URI

      public URI(URI sourceUri, String destPath) throws URISyntaxException
      Constructor. Using this constructor the file will be packaged into given destination path.
      Parameters:
      sourceUri - Source uri.
      destPath - Destination path. Should be given in case the file has to be packaged.
      Throws:
      URISyntaxException
    • URI

      public URI(byte[] source, String destPath) throws URISyntaxException
      Constructor. Using this constructor the file will be packaged into given destination path.
      Parameters:
      source - The Source as bytes.
      destPath - Destination path. Should be given in case the file has to be packaged.
      Throws:
      URISyntaxException
    • URI

      public URI(InputStream source, String destPath) throws URISyntaxException
      Constructor. Using this constructor the file will be packaged into given destination path.
      Parameters:
      source - The Source as InputStream.
      destPath - Destination path. Should be given in case the file has to be packaged.
      Throws:
      URISyntaxException
  • Method Details

    • getSourceUri

      public final URI getSourceUri()
      Get the source uri.
      Returns:
      Source uri.
    • getSourceInputStream

      public final InputStream getSourceInputStream()
      Get the source input stream.
      Returns:
      Source input stream.
    • getDestinationPath

      public final String getDestinationPath()
      Get the destination path.
      Returns:
      Destination path
    • complete

      public final URI complete()
      Completes this URI in order to marshal the correct file reference.
      Returns:
      This URI
    • marshal

      public final String marshal(URI v)
      Specified by:
      marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,URI>
    • unmarshal

      public final URI unmarshal(String v) throws Exception
      Specified by:
      unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,URI>
      Throws:
      Exception
    • toString

      public final String toString()
      Specified by:
      toString in class AbstractXJdfType<String,URI>
      See Also: