@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"})
public abstract class BaseDecoder
extends Object
implements Codec.Decoder
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | BaseDecoder.PBIS | 
| Modifier and Type | Field and Description | 
|---|---|
| private Cell | current | 
| protected InputStream | in | 
| protected static org.slf4j.Logger | LOG | 
| Constructor and Description | 
|---|
| BaseDecoder(InputStream in) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | advance()Advance the scanner 1 cell. | 
| Cell | current() | 
| protected InputStream | getInputStream() | 
| protected abstract Cell | parseCell()Extract a Cell. | 
| private void | rethrowEofException(IOException ioEx) | 
protected static final org.slf4j.Logger LOG
protected final InputStream in
public BaseDecoder(InputStream in)
public boolean advance() throws IOException
CellScanneradvance in interface CellScannerCellScanner.current() will return a valid CellIOException - if advancing the scanner failsprivate void rethrowEofException(IOException ioEx) throws IOException
IOExceptionprotected InputStream getInputStream()
@NonNull protected abstract Cell parseCell() throws IOException
IOExceptionpublic Cell current()
current in interface CellScannerCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.