Package org.tn5250j.tools.filters
Class ExcelOutputFilter
- java.lang.Object
-
- org.tn5250j.tools.filters.ExcelOutputFilter
-
- All Implemented Interfaces:
OutputFilterInterface
public class ExcelOutputFilter extends java.lang.Object implements OutputFilterInterface
-
-
Constructor Summary
Constructors Constructor Description ExcelOutputFilter()
-
Method Summary
Modifier and Type Method Description voidcreateFileInstance(java.lang.String fileName)booleanisCustomizable()voidparseFields(byte[] cByte, java.util.ArrayList ffd, java.lang.StringBuffer rb)Write the html header of the output filevoidsetCustomProperties()voidwriteFooter(java.util.ArrayList ffd)write the footer of the html outputvoidwriteHeader(java.lang.String fileName, java.lang.String host, java.util.ArrayList ffd, char decChar)Write the html header of the output filevoidwriteLong(long l)Writes an eight-bytelongto the underlying output stream in little endian order, low byte first, high byte lastvoidwriteShort(int s)Writes a two byteshortto the underlying output stream in little endian order, low byte first.
-
-
-
Method Detail
-
createFileInstance
public void createFileInstance(java.lang.String fileName) throws java.io.FileNotFoundException- Specified by:
createFileInstancein interfaceOutputFilterInterface- Throws:
java.io.FileNotFoundException
-
parseFields
public void parseFields(byte[] cByte, java.util.ArrayList ffd, java.lang.StringBuffer rb)Write the html header of the output file- Specified by:
parseFieldsin interfaceOutputFilterInterface
-
writeLong
public void writeLong(long l) throws java.io.IOExceptionWrites an eight-bytelongto the underlying output stream in little endian order, low byte first, high byte last- Parameters:
l- thelongto be written.- Throws:
java.io.IOException- if the underlying stream throws an IOException.
-
writeShort
public void writeShort(int s) throws java.io.IOExceptionWrites a two byteshortto the underlying output stream in little endian order, low byte first.- Parameters:
s- theshortto be written.- Throws:
java.io.IOException- if the underlying stream throws an IOException.
-
writeHeader
public void writeHeader(java.lang.String fileName, java.lang.String host, java.util.ArrayList ffd, char decChar)Write the html header of the output file- Specified by:
writeHeaderin interfaceOutputFilterInterface
-
writeFooter
public void writeFooter(java.util.ArrayList ffd)
write the footer of the html output- Specified by:
writeFooterin interfaceOutputFilterInterface
-
isCustomizable
public boolean isCustomizable()
- Specified by:
isCustomizablein interfaceOutputFilterInterface
-
setCustomProperties
public void setCustomProperties()
- Specified by:
setCustomPropertiesin interfaceOutputFilterInterface
-
-