org.apache.hadoop.hive.ql.udf.xml
Class UDFXPathUtil.ReusableStringReader

java.lang.Object
  extended by java.io.Reader
      extended by org.apache.hadoop.hive.ql.udf.xml.UDFXPathUtil.ReusableStringReader
All Implemented Interfaces:
Closeable, Readable
Enclosing class:
UDFXPathUtil

public static class UDFXPathUtil.ReusableStringReader
extends Reader

Reusable, non-threadsafe version of StringReader.


Constructor Summary
UDFXPathUtil.ReusableStringReader()
           
 
Method Summary
 void close()
           
 void mark(int readAheadLimit)
           
 boolean markSupported()
           
 int read()
           
 int read(char[] cbuf, int off, int len)
           
 boolean ready()
           
 void reset()
           
 void set(String s)
           
 long skip(long ns)
           
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDFXPathUtil.ReusableStringReader

public UDFXPathUtil.ReusableStringReader()
Method Detail

set

public void set(String s)

read

public int read()
         throws IOException
Overrides:
read in class Reader
Throws:
IOException

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Specified by:
read in class Reader
Throws:
IOException

skip

public long skip(long ns)
          throws IOException
Overrides:
skip in class Reader
Throws:
IOException

ready

public boolean ready()
              throws IOException
Overrides:
ready in class Reader
Throws:
IOException

markSupported

public boolean markSupported()
Overrides:
markSupported in class Reader

mark

public void mark(int readAheadLimit)
          throws IOException
Overrides:
mark in class Reader
Throws:
IOException

reset

public void reset()
           throws IOException
Overrides:
reset in class Reader
Throws:
IOException

close

public void close()
Specified by:
close in interface Closeable
Specified by:
close in class Reader


Copyright © 2014 The Apache Software Foundation. All rights reserved.