Interface CarbonService

    • 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 of
        options - an ImageOptions instance
        Returns:
        the image as a byte array
      • getImage

        byte[] getImage​(java.io.File file)
                 throws java.io.IOException
        Gets an image using the specified file's contents.
        Parameters:
        file - a File instance
        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.IOException
        Gets an image using the specified file's contents and options.
        Parameters:
        file - a File instance
        options - an ImageOptions instance
        Returns:
        the image as a byte array
        Throws:
        java.io.IOException - if the file cannot be read