mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-04-19 21:16:30 +02:00
Notes
This commit is contained in:
parent
86c2349fd3
commit
2118a8fda1
@ -30,6 +30,10 @@ public abstract class HandlerManager {
|
||||
}
|
||||
return loc;
|
||||
}
|
||||
|
||||
// TODO: What if files are read multiple times??
|
||||
// Zip handler discards once read, requesting multiple times on other handlers would cause multiple downloads
|
||||
// Caching system? Copy from already downloaded files?
|
||||
|
||||
public static InputStream getFileInputStream(URI loc) throws Exception {
|
||||
for (IRequestHandler handler : handlers) {
|
||||
|
@ -16,6 +16,7 @@ public interface IRequestHandler {
|
||||
|
||||
/**
|
||||
* Gets the InputStream for a location. Must be threadsafe.
|
||||
* It is assumed that each location is read only once for the duration of an IRequestHandler.
|
||||
* @param loc The location to be read
|
||||
* @return The InputStream containing the data of the file
|
||||
* @throws Exception
|
||||
|
@ -1,8 +1,6 @@
|
||||
package link.infra.packwiz.installer.request.handlers;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URI;
|
||||
import java.net.URLConnection;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user