public class StreamableSpooler extends Object
Modifier and Type | Class and Description |
---|---|
class |
StreamableSpooler.StreamableSpoolerGC |
Modifier and Type | Field and Description |
---|---|
protected static StreamableSpooler |
_instance |
protected StreamableSpooler.StreamableSpoolerGC |
gcInstance |
protected File |
spoolDirectory |
Modifier and Type | Method and Description |
---|---|
static void |
copyStream(InputStream is,
OutputStream os) |
static void |
copyStream(InputStream is,
OutputStream os,
boolean close_src,
boolean close_dest) |
StreamableSpooler.StreamableSpoolerGC |
getGCInstance() |
static StreamableSpooler |
instance() |
File |
spoolStream(InputStream is) |
void |
spoolStreamTo(InputStream is,
File target) |
protected static StreamableSpooler _instance
protected StreamableSpooler.StreamableSpoolerGC gcInstance
protected File spoolDirectory
public static StreamableSpooler instance()
public void spoolStreamTo(InputStream is, File target) throws IOException
IOException
public File spoolStream(InputStream is) throws IOException
IOException
public StreamableSpooler.StreamableSpoolerGC getGCInstance()
public static void copyStream(InputStream is, OutputStream os) throws IOException
IOException
public static void copyStream(InputStream is, OutputStream os, boolean close_src, boolean close_dest) throws IOException
IOException
Copyright © 2017. All rights reserved.