| java.lang.Object org.apache.fop.render.rtf.rtflib.tools.ImageUtil
ImageUtil | public class ImageUtil (Code) | | Misc.utilities for images handling
This class belongs to the tag processing.
author: Andreas Putz |
Method Summary | |
public static boolean | compareHexValues(byte[] pattern, byte[] data, int searchAt, boolean searchForward) Compares two hexadecimal values. | public static int | getInt(String value) Determines the digits from a string. | public static int | getIntFromByteArray(byte[] data, int startAt, int length, boolean searchForward) Determines a integer value from a hexadecimal byte array. | public static boolean | isPercent(String value) Checks the string for percent character at the end of string. |
compareHexValues | public static boolean compareHexValues(byte[] pattern, byte[] data, int searchAt, boolean searchForward)(Code) | | Compares two hexadecimal values.
Parameters: pattern - Target Parameters: data - Data Parameters: searchAt - Position to start compare Parameters: searchForward - Direction to compare byte arrays true If equalfalse If different |
getInt | public static int getInt(String value)(Code) | | Determines the digits from a string.
Parameters: value - String with digits -1 There is no digitnumber The digits as integer |
getIntFromByteArray | public static int getIntFromByteArray(byte[] data, int startAt, int length, boolean searchForward)(Code) | | Determines a integer value from a hexadecimal byte array.
Parameters: data - Image Parameters: startAt - Start index to read from Parameters: length - Number of data elements to read Parameters: searchForward - True if searching forward, False if not (??) integer |
isPercent | public static boolean isPercent(String value)(Code) | | Checks the string for percent character at the end of string.
Parameters: value - String with digits true The string contains a % valuefalse Other string |
|
|