Class Payload
- java.lang.Object
-
- java.io.OutputStream
-
- de.erichseifert.vectorgraphics2d.pdf.Payload
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
class Payload extends java.io.OutputStream
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.ByteArrayOutputStream
byteStream
private boolean
empty
private java.io.OutputStream
filteredStream
-
Constructor Summary
Constructors Constructor Description Payload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFilter(java.lang.Class<FlateEncodeStream> filterClass)
void
close()
byte[]
getBytes()
boolean
isEmpty()
void
write(int b)
-
-
-
Method Detail
-
getBytes
public byte[] getBytes()
-
write
public void write(int b) throws java.io.IOException
- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
isEmpty
public boolean isEmpty()
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
addFilter
public void addFilter(java.lang.Class<FlateEncodeStream> filterClass)
-
-