KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > io > CharArrayReader

java.io
Class CharArrayReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.CharArrayReader
All Implemented Interfaces:
Closeable, Readable
See Also:
Top Examples, Source Code

protected char[] buf
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public CharArrayReader(char[] buf)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public CharArrayReader(char[] buf,
                       int offset,
                       int length)
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[183]Write byte array to CLOB
By Anonymous on 2003/03/17 17:27:45  Rate
java.io.CharArrayReader bais = new java.io.CharArrayReader ( contenido.toCharArray (  )  ) ; 
   java.io.Writer out = clob.getCharacterOutputStream (  ) ; 
   int chunk = 1000; 
   char buffer [  ]  = new char [ chunk ] ; 
   int length; 
    
   int i=1; 
   while  (  ( length = bais.read ( buffer, 100 *  ( i-1 ) , 100 * i )  )  != -1 )  
    {  
     out.write ( buffer, 100 *  ( i-1 ) , length ) ; 
     i++; 
    }  
    
   out.close (  ) ;


public void close()
See Also:
Reader, Closeable
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected int count
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void mark(int readAheadLimit)
          throws IOException
See Also:
Reader
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected int markedPos
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean markSupported()
See Also:
Reader
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected int pos
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int read()
         throws IOException
See Also:
Reader
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int read(char[] b,
                int off,
                int len)
         throws IOException
See Also:
Reader
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean ready()
              throws IOException
See Also:
Reader
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void reset()
           throws IOException
See Also:
Reader
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long skip(long n)
          throws IOException
See Also:
Reader
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags