Class PathDataSource

java.lang.Object
org.aktin.broker.util.PathDataSource
All Implemented Interfaces:
javax.activation.DataSource, DateDataSource
Direct Known Subclasses:
DigestPathDataSource

public class PathDataSource
extends Object
implements DateDataSource
  • Constructor Details

    • PathDataSource

      public PathDataSource​(Path path, String type, Instant lastModified)
  • Method Details

    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface javax.activation.DataSource
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface javax.activation.DataSource
      Throws:
      IOException
    • getName

      public String getName()
      Specified by:
      getName in interface javax.activation.DataSource
    • getOutputStream

      public OutputStream getOutputStream() throws IOException
      Specified by:
      getOutputStream in interface javax.activation.DataSource
      Throws:
      IOException
    • getLastModified

      public Instant getLastModified()
      Specified by:
      getLastModified in interface DateDataSource
    • getContentLength

      public Long getContentLength()
      Specified by:
      getContentLength in interface DateDataSource
    • getPath

      public Path getPath()