org.apache.hadoop.record.compiler.generated
Class SimpleCharStream

java.lang.Object
  extended by org.apache.hadoop.record.compiler.generated.SimpleCharStream

Deprecated. Replaced by Avro.

@Deprecated
@InterfaceAudience.Public
@InterfaceStability.Stable
public class SimpleCharStream
extends Object

An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode processing).


Field Summary
protected  int[] bufcolumn
          Deprecated.  
protected  char[] buffer
          Deprecated.  
protected  int[] bufline
          Deprecated.  
 int bufpos
          Deprecated.  
protected  int column
          Deprecated.  
protected  int inBuf
          Deprecated.  
protected  Reader inputStream
          Deprecated.  
protected  int line
          Deprecated.  
protected  int maxNextCharInd
          Deprecated.  
protected  boolean prevCharIsCR
          Deprecated.  
protected  boolean prevCharIsLF
          Deprecated.  
static boolean staticFlag
          Deprecated.  
protected  int tabSize
          Deprecated.  
 
Constructor Summary
SimpleCharStream(InputStream dstream)
          Deprecated.  
SimpleCharStream(InputStream dstream, int startline, int startcolumn)
          Deprecated.  
SimpleCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)
          Deprecated.  
SimpleCharStream(InputStream dstream, String encoding)
          Deprecated.  
SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn)
          Deprecated.  
SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize)
          Deprecated.  
SimpleCharStream(Reader dstream)
          Deprecated.  
SimpleCharStream(Reader dstream, int startline, int startcolumn)
          Deprecated.  
SimpleCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
          Deprecated.  
 
Method Summary
 void adjustBeginLineColumn(int newLine, int newCol)
          Deprecated. Method to adjust line and column numbers for the start of a token.
 void backup(int amount)
          Deprecated.  
 char BeginToken()
          Deprecated.  
 void Done()
          Deprecated.  
protected  void ExpandBuff(boolean wrapAround)
          Deprecated.  
protected  void FillBuff()
          Deprecated.  
 int getBeginColumn()
          Deprecated.  
 int getBeginLine()
          Deprecated.  
 int getEndColumn()
          Deprecated.  
 int getEndLine()
          Deprecated.  
 String GetImage()
          Deprecated.  
 char[] GetSuffix(int len)
          Deprecated.  
protected  int getTabSize(int i)
          Deprecated.  
 char readChar()
          Deprecated.  
 void ReInit(InputStream dstream)
          Deprecated.  
 void ReInit(InputStream dstream, int startline, int startcolumn)
          Deprecated.  
 void ReInit(InputStream dstream, int startline, int startcolumn, int buffersize)
          Deprecated.  
 void ReInit(InputStream dstream, String encoding)
          Deprecated.  
 void ReInit(InputStream dstream, String encoding, int startline, int startcolumn)
          Deprecated.  
 void ReInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize)
          Deprecated.  
 void ReInit(Reader dstream)
          Deprecated.  
 void ReInit(Reader dstream, int startline, int startcolumn)
          Deprecated.  
 void ReInit(Reader dstream, int startline, int startcolumn, int buffersize)
          Deprecated.  
protected  void setTabSize(int i)
          Deprecated.  
protected  void UpdateLineColumn(char c)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

staticFlag

public static final boolean staticFlag
Deprecated. 
See Also:
Constant Field Values

bufpos

public int bufpos
Deprecated. 

bufline

protected int[] bufline
Deprecated. 

bufcolumn

protected int[] bufcolumn
Deprecated. 

column

protected int column
Deprecated. 

line

protected int line
Deprecated. 

prevCharIsCR

protected boolean prevCharIsCR
Deprecated. 

prevCharIsLF

protected boolean prevCharIsLF
Deprecated. 

inputStream

protected Reader inputStream
Deprecated. 

buffer

protected char[] buffer
Deprecated. 

maxNextCharInd

protected int maxNextCharInd
Deprecated. 

inBuf

protected int inBuf
Deprecated. 

tabSize

protected int tabSize
Deprecated. 
Constructor Detail

SimpleCharStream

public SimpleCharStream(Reader dstream,
                        int startline,
                        int startcolumn,
                        int buffersize)
Deprecated. 

SimpleCharStream

public SimpleCharStream(Reader dstream,
                        int startline,
                        int startcolumn)
Deprecated. 

SimpleCharStream

public SimpleCharStream(Reader dstream)
Deprecated. 

SimpleCharStream

public SimpleCharStream(InputStream dstream,
                        String encoding,
                        int startline,
                        int startcolumn,
                        int buffersize)
                 throws UnsupportedEncodingException
Deprecated. 
Throws:
UnsupportedEncodingException

SimpleCharStream

public SimpleCharStream(InputStream dstream,
                        int startline,
                        int startcolumn,
                        int buffersize)
Deprecated. 

SimpleCharStream

public SimpleCharStream(InputStream dstream,
                        String encoding,
                        int startline,
                        int startcolumn)
                 throws UnsupportedEncodingException
Deprecated. 
Throws:
UnsupportedEncodingException

SimpleCharStream

public SimpleCharStream(InputStream dstream,
                        int startline,
                        int startcolumn)
Deprecated. 

SimpleCharStream

public SimpleCharStream(InputStream dstream,
                        String encoding)
                 throws UnsupportedEncodingException
Deprecated. 
Throws:
UnsupportedEncodingException

SimpleCharStream

public SimpleCharStream(InputStream dstream)
Deprecated. 
Method Detail

setTabSize

protected void setTabSize(int i)
Deprecated. 

getTabSize

protected int getTabSize(int i)
Deprecated. 

ExpandBuff

protected void ExpandBuff(boolean wrapAround)
Deprecated. 

FillBuff

protected void FillBuff()
                 throws IOException
Deprecated. 
Throws:
IOException

BeginToken

public char BeginToken()
                throws IOException
Deprecated. 
Throws:
IOException

UpdateLineColumn

protected void UpdateLineColumn(char c)
Deprecated. 

readChar

public char readChar()
              throws IOException
Deprecated. 
Throws:
IOException

getEndColumn

public int getEndColumn()
Deprecated. 

getEndLine

public int getEndLine()
Deprecated. 

getBeginColumn

public int getBeginColumn()
Deprecated. 

getBeginLine

public int getBeginLine()
Deprecated. 

backup

public void backup(int amount)
Deprecated. 

ReInit

public void ReInit(Reader dstream,
                   int startline,
                   int startcolumn,
                   int buffersize)
Deprecated. 

ReInit

public void ReInit(Reader dstream,
                   int startline,
                   int startcolumn)
Deprecated. 

ReInit

public void ReInit(Reader dstream)
Deprecated. 

ReInit

public void ReInit(InputStream dstream,
                   String encoding,
                   int startline,
                   int startcolumn,
                   int buffersize)
            throws UnsupportedEncodingException
Deprecated. 
Throws:
UnsupportedEncodingException

ReInit

public void ReInit(InputStream dstream,
                   int startline,
                   int startcolumn,
                   int buffersize)
Deprecated. 

ReInit

public void ReInit(InputStream dstream,
                   String encoding)
            throws UnsupportedEncodingException
Deprecated. 
Throws:
UnsupportedEncodingException

ReInit

public void ReInit(InputStream dstream)
Deprecated. 

ReInit

public void ReInit(InputStream dstream,
                   String encoding,
                   int startline,
                   int startcolumn)
            throws UnsupportedEncodingException
Deprecated. 
Throws:
UnsupportedEncodingException

ReInit

public void ReInit(InputStream dstream,
                   int startline,
                   int startcolumn)
Deprecated. 

GetImage

public String GetImage()
Deprecated. 

GetSuffix

public char[] GetSuffix(int len)
Deprecated. 

Done

public void Done()
Deprecated. 

adjustBeginLineColumn

public void adjustBeginLineColumn(int newLine,
                                  int newCol)
Deprecated. 
Method to adjust line and column numbers for the start of a token.



Copyright © 2014 Apache Software Foundation. All Rights Reserved.