Package dev.equo.solstice.p2
Class P2Client
- java.lang.Object
-
- dev.equo.solstice.p2.P2Client
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class P2Client extends java.lang.Object implements java.lang.AutoCloseablePerforms network requests and parsing against a P2 repository, aided by caching.
-
-
Constructor Summary
Constructors Constructor Description P2Client()P2Client(P2ClientCache cachingPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.io.Filedownload(P2Unit unit)
-
-
-
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:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
-