Package sh.stein.carbon
Interface CarbonService
-
- All Known Implementing Classes:
PlaywrightCarbonService
public interface CarbonServiceA service used to interact with Carbon.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]getImage(java.io.File file)Gets an image using the specified file's contents.byte[]getImage(java.io.File file, ImageOptions options)Gets an image using the specified file's contents and options.byte[]getImage(java.lang.String code)Gets an image using the specified code.byte[]getImage(java.lang.String code, ImageOptions options)Gets an image using the specified code and options.
-
-
-
Method Detail
-
getImage
byte[] getImage(java.lang.String code)
Gets an image using the specified code.- Parameters:
code- code to get an image of- Returns:
- the image as a byte array
-
getImage
byte[] getImage(java.lang.String code, ImageOptions options)Gets an image using the specified code and options.- Parameters:
code- code to get an image ofoptions- anImageOptionsinstance- Returns:
- the image as a byte array
-
getImage
byte[] getImage(java.io.File file) throws java.io.IOExceptionGets an image using the specified file's contents.- Parameters:
file- aFileinstance- Returns:
- the image as a byte array
- Throws:
java.io.IOException- if the file cannot be read
-
getImage
byte[] getImage(java.io.File file, ImageOptions options) throws java.io.IOExceptionGets an image using the specified file's contents and options.- Parameters:
file- aFileinstanceoptions- anImageOptionsinstance- Returns:
- the image as a byte array
- Throws:
java.io.IOException- if the file cannot be read
-
-