Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.servingxml.components.flatfile.scanner.characters
Class CharBufferImpl

    java.lang.Object
      com.servingxml.components.flatfile.scanner.characters.CharBufferImpl

All Implemented Interfaces:
  CharBuffer

    public class CharBufferImpl

extends java.lang.Object
implements CharBuffer

Field Summary
`protected static int` | `BLOCK_LENGTH`
`protected char[]` | `buffer`
`protected int` | `length`
`protected int` | `maxLength`
`protected int` | `position`
`protected int` | `reserved`
`protected int` | `start`

Constructor Summary
`CharBufferImpl(java.io.Reader reader)`

Method Summary
`char[]` | `buffer()`
`void` | `clear()`
`char` | `current()`
`boolean` | `done()`
`protected boolean` | `eof()`
`int` | `getPosition()`
`int` | `getReserved()`
`protected void` | `grow(int n)`
`int` | `length()`
`int` | `maxLength()`
`void` | `next()`
`void` | `next(int n)`
`protected void` | `read(int n)`
`void` | `setPosition(int position)`
`void` | `setReserved(int reserved)`
`int` | `start()`
`boolean` | `startsWith(char[] prefix)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### BLOCK_LENGTH

    protected static final int BLOCK_LENGTH

See Also:
  Constant Field Values

### buffer

    protected char[] buffer

### start

    protected int start

### length

    protected int length

### maxLength

    protected int maxLength

### position

    protected int position

### reserved

    protected int reserved

Constructor Detail

### CharBufferImpl

    public CharBufferImpl(java.io.Reader reader)

Method Detail

### read

    protected void read(int n)
                 throws java.io.IOException

  Throws:
    `java.io.IOException`

### getPosition

    public int getPosition()

  Specified by:
    `getPosition` in interface `CharBuffer`

### setPosition

    public void setPosition(int position)

  Specified by:
    `setPosition` in interface `CharBuffer`

### getReserved

    public int getReserved()

  Specified by:
    `getReserved` in interface `CharBuffer`

### setReserved

    public void setReserved(int reserved)

  Specified by:
    `setReserved` in interface `CharBuffer`

### maxLength

    public int maxLength()

  Specified by:
    `maxLength` in interface `CharBuffer`

### next

    public void next()
              throws java.io.IOException

  Specified by:
    `next` in interface `CharBuffer`
  Throws:
    `java.io.IOException`

### next

    public void next(int n)
              throws java.io.IOException

  Specified by:
    `next` in interface `CharBuffer`
  Throws:
    `java.io.IOException`

### done

    public boolean done()

  Specified by:
    `done` in interface `CharBuffer`

### eof

    protected boolean eof()

### current

    public char current()

  Specified by:
    `current` in interface `CharBuffer`

### grow

    protected void grow(int n)

### buffer

    public char[] buffer()

  Specified by:
    `buffer` in interface `CharBuffer`

### start

    public int start()

  Specified by:
    `start` in interface `CharBuffer`

### length

    public int length()

  Specified by:
    `length` in interface `CharBuffer`

### startsWith

    public boolean startsWith(char[] prefix)
                       throws java.io.IOException

  Specified by:
    `startsWith` in interface `CharBuffer`
  Throws:
    `java.io.IOException`

### clear

    public void clear()

  Specified by:
    `clear` in interface `CharBuffer`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD