/** * Creates a new instance of MemoryClearingBuffer from a * <code>byte[]</code>. * * @param bytes A byte[] * @return A buffer */ public static MemoryClearingBuffer newInstance( byte[] bytes ) { return new MemoryClearingBuffer( bytes, null, false, false ); }
/** * Creates a new instance of MemoryClearingBuffer from a * <code>byte[]</code>. * * @param bytes A byte[] * @return A buffer */ public static MemoryClearingBuffer newInstance( byte[] bytes ) { return new MemoryClearingBuffer( bytes, null, false, false ); }
/** * Creates a new instance of MemoryClearingBuffer from a * <code>char[]</code>. * * @param chars A char[] * @return A buffer */ public static MemoryClearingBuffer newInstance( char[] chars ) { return new MemoryClearingBuffer( null, chars, false, false ); }
/** * Creates a new instance of MemoryClearingBuffer from a * <code>char[]</code>, optionally performing whitespace trimming and * conversion to lower case. * * @param chars A char[] * @param trim If true, whitespace will be trimmed off of both ends of the * <code>char[]</code> * @param lowerCase If true, the characters will be converted to lower case * @return A buffer */ public static MemoryClearingBuffer newInstance( char[] chars, boolean trim, boolean lowerCase ) { return new MemoryClearingBuffer( null, chars, trim, lowerCase ); }
/** * Creates a new instance of MemoryClearingBuffer from a * <code>char[]</code>. * * @param chars A char[] * @return A buffer */ public static MemoryClearingBuffer newInstance( char[] chars ) { return new MemoryClearingBuffer( null, chars, false, false ); }
/** * Creates a new instance of MemoryClearingBuffer from a * <code>byte[]</code>. * * @param bytes A byte[] * @return A buffer */ public static MemoryClearingBuffer newInstance( byte[] bytes ) { return new MemoryClearingBuffer( bytes, null, false, false ); }
/** * Creates a new instance of MemoryClearingBuffer from a * <code>char[]</code>. * * @param chars A char[] * @return A buffer */ public static MemoryClearingBuffer newInstance( char[] chars ) { return new MemoryClearingBuffer( null, chars, false, false ); }
/** * Creates a new instance of MemoryClearingBuffer from a * <code>char[]</code>, optionally performing whitespace trimming and * conversion to lower case. * * @param chars A char[] * @param trim If true, whitespace will be trimmed off of both ends of the * <code>char[]</code> * @param lowerCase If true, the characters will be converted to lower case * @return A buffer */ public static MemoryClearingBuffer newInstance( char[] chars, boolean trim, boolean lowerCase ) { return new MemoryClearingBuffer( null, chars, trim, lowerCase ); }
/** * Creates a new instance of MemoryClearingBuffer from a * <code>char[]</code>, optionally performing whitespace trimming and * conversion to lower case. * * @param chars A char[] * @param trim If true, whitespace will be trimmed off of both ends of the * <code>char[]</code> * @param lowerCase If true, the characters will be converted to lower case * @return A buffer */ public static MemoryClearingBuffer newInstance( char[] chars, boolean trim, boolean lowerCase ) { return new MemoryClearingBuffer( null, chars, trim, lowerCase ); }