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 classStreamableSpooler.StreamableSpoolerGC
-
Field Summary
Fields Modifier and Type Field Description protected static StreamableSpooler_instanceprotected StreamableSpooler.StreamableSpoolerGCgcInstanceprotected FilespoolDirectory
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcopyStream(InputStream is, OutputStream os)static voidcopyStream(InputStream is, OutputStream os, boolean close_src, boolean close_dest)StreamableSpooler.StreamableSpoolerGCgetGCInstance()static StreamableSpoolerinstance()FilespoolStream(InputStream is)voidspoolStreamTo(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
-
-