Interface Location

All Known Implementing Classes:
ArtifactLocation, FileLocation, URLLocation

public interface Location
The location interface.
  • Method Details

    • getFile

      File getFile() throws IOException
      Returns:
      File.
      Throws:
      IOException - in case of an error.
    • open

      void open() throws IOException
      open the location.
      Throws:
      IOException - in case of an error.
    • close

      void close()
      Close the location.
    • read

      int read(ByteBuffer buffer) throws IOException
      Parameters:
      buffer - The buffer.
      Returns:
      number of read bytes.
      Throws:
      IOException - in case of an error.
    • read

      int read(byte[] buffer) throws IOException
      Parameters:
      buffer - The buffer.
      Returns:
      number of read bytes.
      Throws:
      IOException - in case of an error.
    • getInputStream

      InputStream getInputStream() throws IOException
      Returns:
      the resulting input stream.
      Throws:
      IOException - in case of an error.
    • getSpecification

      String getSpecification()
      Returns:
      spec.