Class UrlStreamConnector

  • All Implemented Interfaces:
    IStreamConnector<java.net.URI>

    public final class UrlStreamConnector
    extends java.lang.Object
    implements IStreamConnector<java.net.URI>
    • Constructor Detail

      • UrlStreamConnector

        public UrlStreamConnector()
    • Method Detail

      • exist

        public boolean exist​(java.net.URI uri)
        Specified by:
        exist in interface IStreamConnector<java.net.URI>
      • canRead

        public boolean canRead​(java.net.URI uri)
        Specified by:
        canRead in interface IStreamConnector<java.net.URI>
      • canWrite

        public boolean canWrite​(java.net.URI uri)
        Specified by:
        canWrite in interface IStreamConnector<java.net.URI>
      • openInputStream

        public java.io.InputStream openInputStream​(java.net.URI uri,
                                                   IAcceptor<java.lang.String> contentTypeAcceptor)
                                            throws java.io.IOException
        Specified by:
        openInputStream in interface IStreamConnector<java.net.URI>
        Throws:
        java.io.IOException
      • openInputStream

        public java.io.InputStream openInputStream​(java.net.URI uri)
                                            throws java.io.IOException
        Specified by:
        openInputStream in interface IStreamConnector<java.net.URI>
        Throws:
        java.io.IOException
      • openOutputStream

        public java.io.OutputStream openOutputStream​(java.net.URI uri)
                                              throws java.io.IOException
        Specified by:
        openOutputStream in interface IStreamConnector<java.net.URI>
        Throws:
        java.io.IOException
      • getContentLength

        public long getContentLength​(java.net.URI uri)
                              throws java.io.IOException
        Specified by:
        getContentLength in interface IStreamConnector<java.net.URI>
        Throws:
        java.io.IOException
      • getContentType

        public java.lang.String getContentType​(java.net.URI uri)
                                        throws java.io.IOException
        Specified by:
        getContentType in interface IStreamConnector<java.net.URI>
        Throws:
        java.io.IOException