Class P2Client

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class P2Client
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Performs network requests and parsing against a P2 repository, aided by caching.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.io.File download​(P2Unit unit)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • P2Client

        public P2Client()
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • P2Client

        public P2Client​(P2ClientCache cachingPolicy)
                 throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • download

        public java.io.File download​(P2Unit unit)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException