Class SpoolManager
java.lang.Object
com.softwaremining.vendors.cics.util.SpoolManager
Translation of CICS SPOOLOPEN SPOOLWRITE and SPOOLCLOSE
The SpoolManager writes files out to a directory defined by Config.PRINT_DIR (defaults to DATA_DIR).
NOTE a separate script needs to be scanning this directory and send the "unlocked" files to printer and then to delete the file.
The data will stay in memory until the "close()" method is called - only on "close()" the target file will be generated. This allows the "folder scanner" application not to have to deal with partially written data.
The SpoolManager writes files out to a directory defined by Config.PRINT_DIR (defaults to DATA_DIR).
NOTE a separate script needs to be scanning this directory and send the "unlocked" files to printer and then to delete the file.
The data will stay in memory until the "close()" method is called - only on "close()" the target file will be generated. This allows the "folder scanner" application not to have to deal with partially written data.
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
close
(CicsBaseService owner, String tokenName) static int
close
(CicsBaseService owner, String tokenName, boolean noHandle) static int
open
(CicsBaseService owner, SpoolOpenDO spoolDo) static int
write
(CicsBaseService owner, String tokenName, AbstractDataObject data, int dataLength) static int
write
(CicsBaseService owner, String tokenName, String data) static int
write
(CicsBaseService owner, String tokenName, String data, boolean noHandle) static int
write
(CicsBaseService owner, String tokenName, String data, int dataLength) static int
write
(CicsBaseService owner, String tokenName, String data, int dataLength, boolean noHandle)
-
Method Details
-
open
-
write
-
write
public static int write(CicsBaseService owner, String tokenName, AbstractDataObject data, int dataLength) -
write
-
write
-
write
public static int write(CicsBaseService owner, String tokenName, String data, int dataLength, boolean noHandle) -
close
-
close
-