Package io.ebean.enhance.common
Class InputStreamTransform
java.lang.Object
io.ebean.enhance.common.InputStreamTransform
Utility object that handles input streams for reading and writing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic byte[]readBytes(InputStream is) byte[]Transform a file.byte[]transform(String className, InputStream is) Transform a input stream.static voidwriteBytes(byte[] bytes, File file) Helper method to write bytes to a file.static voidwriteBytes(byte[] bytes, OutputStream os) Helper method to write bytes to a OutputStream.
-
Constructor Details
-
InputStreamTransform
-
-
Method Details
-
log
-
transform
public byte[] transform(String className, File file) throws IOException, IllegalClassFormatException Transform a file. -
transform
public byte[] transform(String className, InputStream is) throws IOException, IllegalClassFormatException Transform a input stream. -
writeBytes
Helper method to write bytes to a file.- Throws:
IOException
-
writeBytes
Helper method to write bytes to a OutputStream.- Throws:
IOException
-
readBytes
- Throws:
IOException
-