Class URI


  • public class URI
    extends AbstractXJdfType<java.lang.String,​URI>
    Implementation of the XJDF URI data type.
    • Constructor Summary

      Constructors 
      Constructor Description
      URI()
      Constructor.
      URI​(byte[] source, java.lang.String destPath)
      Constructor.
      URI​(java.io.InputStream source, java.lang.String destPath)
      Constructor.
      URI​(java.lang.String sourceUri)
      Constructor.
      URI​(java.net.URI sourceUri)
      Constructor.
      URI​(java.net.URI sourceUri, java.lang.String destPath)
      Constructor.
    • Constructor Detail

      • URI

        public URI()
        Constructor.
      • URI

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

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

        public URI​(java.net.URI sourceUri,
                   java.lang.String destPath)
            throws java.net.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:
        java.net.URISyntaxException
      • URI

        public URI​(byte[] source,
                   java.lang.String destPath)
            throws java.net.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:
        java.net.URISyntaxException
      • URI

        public URI​(java.io.InputStream source,
                   java.lang.String destPath)
            throws java.net.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:
        java.net.URISyntaxException
    • Method Detail

      • getSourceUri

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

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

        public final java.lang.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 java.lang.String marshal​(URI v)
        Specified by:
        marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​URI>
      • unmarshal

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

        public final java.lang.String toString()
        Specified by:
        toString in class AbstractXJdfType<java.lang.String,​URI>
        See Also:
        Object.toString()