Class StreamableSpooler
- java.lang.Object
-
- org.datanucleus.store.rdbms.mapping.column.StreamableSpooler
-
public class StreamableSpooler extends Object
Spooler for files being streamed from the datastore.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
StreamableSpooler.StreamableSpoolerGC
-
Field Summary
Fields Modifier and Type Field Description protected static StreamableSpooler
_instance
protected StreamableSpooler.StreamableSpoolerGC
gcInstance
protected File
spoolDirectory
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
_instance
protected static StreamableSpooler _instance
-
gcInstance
protected StreamableSpooler.StreamableSpoolerGC gcInstance
-
spoolDirectory
protected File spoolDirectory
-
-
Method Detail
-
instance
public static StreamableSpooler instance()
-
spoolStreamTo
public void spoolStreamTo(InputStream is, File target) throws IOException
- Throws:
IOException
-
spoolStream
public File spoolStream(InputStream is) throws IOException
- Throws:
IOException
-
getGCInstance
public StreamableSpooler.StreamableSpoolerGC getGCInstance()
-
copyStream
public static void copyStream(InputStream is, OutputStream os) throws IOException
- Throws:
IOException
-
copyStream
public static void copyStream(InputStream is, OutputStream os, boolean close_src, boolean close_dest) throws IOException
- Throws:
IOException
-
-