Class PlexusIoURLResource

    • Constructor Detail

      • PlexusIoURLResource

        protected PlexusIoURLResource​(@Nonnull
                                      String name,
                                      long lastModified,
                                      long size,
                                      boolean isFile,
                                      boolean isDirectory,
                                      boolean isExisting)
    • Method Detail

      • getContents

        @Nonnull
        public InputStream getContents()
                                throws IOException
        Description copied from interface: PlexusIoResource
        Creates an InputStream, which may be used to read the files contents. This is useful, if the file selector comes to a decision based on the files contents. Please note that this InputStream is unbuffered. Clients should wrap this in a BufferedInputStream or attempt reading reasonably large chunks (8K+).
        Throws:
        IOException
      • getDescriptionForError

        public String getDescriptionForError​(URL url)