/** Creates a new fast buffered reader by wrapping a given fragment of a character array and using a set of additional word constituents. * <p>The effect of {@link #setReader(Reader)} on a buffer created with * this constructor is undefined. * * @param array the array that will be wrapped by the reader. * @param offset the first character to be used. * @param length the number of character to be used. * @param wordConstituents a set of characters that will be considered word constituents. */ public FastBufferedReader( final char[] array, final int offset, final int length, final CharSet wordConstituents ) { CharArrays.ensureOffsetLength( array, offset, length ); buffer = array; pos = offset; avail = length; bufferSize = array.length; reader = NullReader.getInstance(); this.wordConstituents = wordConstituents; }
/** Creates a new fast buffered reader by wrapping a given fragment of a character array and using a set of additional word constituents. * <p>The effect of {@link #setReader(Reader)} on a buffer created with * this constructor is undefined. * * @param array the array that will be wrapped by the reader. * @param offset the first character to be used. * @param length the number of character to be used. * @param wordConstituents a set of characters that will be considered word constituents. */ public FastBufferedReader(final char[] array, final int offset, final int length, final CharSet wordConstituents) { CharArrays.ensureOffsetLength(array, offset, length); buffer = array; pos = offset; avail = length; bufferSize = array.length; reader = NullReader.getInstance(); this.wordConstituents = wordConstituents; }
/** Creates a new fast buffered reader by wrapping a given fragment of a character array and using a set of additional word constituents. * <p>The effect of {@link #setReader(Reader)} on a buffer created with * this constructor is undefined. * * @param array the array that will be wrapped by the reader. * @param offset the first character to be used. * @param length the number of character to be used. * @param wordConstituents a set of characters that will be considered word constituents. */ public FastBufferedReader( final char[] array, final int offset, final int length, final CharSet wordConstituents ) { CharArrays.ensureOffsetLength( array, offset, length ); buffer = array; pos = offset; avail = length; bufferSize = array.length; reader = NullReader.getInstance(); this.wordConstituents = wordConstituents; }
public Object content( final int field ) throws IOException { ensureFieldIndex( field ); if ( rename[ factoryIndex ][ field ] < 0 ) return NullReader.getInstance(); return document.content( rename[ factoryIndex ][ field ] ); }
public Object content( final int field ) throws IOException { ensureFieldIndex( field ); if ( rename[ factoryIndex ][ field ] < 0 ) return NullReader.getInstance(); return document.content( rename[ factoryIndex ][ field ] ); }
public Object content( final int field ) throws IOException { ensureFieldIndex( field ); if ( rename[ factoryIndex ][ field ] < 0 ) return NullReader.getInstance(); return document.content( rename[ factoryIndex ][ field ] ); }
public Object content( final int field ) throws IOException { ensureFieldIndex( field ); if ( rename[ factoryIndex ][ field ] < 0 ) return NullReader.getInstance(); return document.content( rename[ factoryIndex ][ field ] ); }
private Reader joinAddresses( final Address address[] ) { if ( address == null ) return NullReader.getInstance(); final MutableString s = new MutableString(); if ( address != null ) { for( int i = 0; i < address.length; i++ ) { if ( i > 0 ) s.append( ", " ); s.append( address[ i ] ); } } return new FastBufferedReader( s ); }
private Reader joinAddresses( final Address address[] ) { if ( address == null ) return NullReader.getInstance(); final MutableString s = new MutableString(); if ( address != null ) { for( int i = 0; i < address.length; i++ ) { if ( i > 0 ) s.append( ", " ); s.append( address[ i ] ); } } return new FastBufferedReader( s ); }
private Reader joinAddresses( final Address address[] ) { if ( address == null ) return NullReader.getInstance(); final MutableString s = new MutableString(); if ( address != null ) { for( int i = 0; i < address.length; i++ ) { if ( i > 0 ) s.append( ", " ); s.append( address[ i ] ); } } return new FastBufferedReader( s ); }
private Reader joinAddresses( final Address address[] ) { if ( address == null ) return NullReader.getInstance(); final MutableString s = new MutableString(); if ( address != null ) { for( int i = 0; i < address.length; i++ ) { if ( i > 0 ) s.append( ", " ); s.append( address[ i ] ); } } return new FastBufferedReader( s ); }
return NullReader.getInstance(); case 1: // subject return message.getSubject() == null ? NullReader.getInstance() : new StringReader( message.getSubject() ); case 2: // from return joinAddresses( message.getFrom() ); return NullReader.getInstance();
return NullReader.getInstance(); case 1: // subject return message.getSubject() == null ? NullReader.getInstance() : new StringReader( message.getSubject() ); case 2: // from return joinAddresses( message.getFrom() ); return NullReader.getInstance();
return NullReader.getInstance(); case 1: // subject return message.getSubject() == null ? NullReader.getInstance() : new StringReader( message.getSubject() ); case 2: // from return joinAddresses( message.getFrom() ); return NullReader.getInstance();
return NullReader.getInstance(); case 1: // subject return message.getSubject() == null ? NullReader.getInstance() : new StringReader( message.getSubject() ); case 2: // from return joinAddresses( message.getFrom() ); return NullReader.getInstance();