Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.util
Class NullImplementation.NullReader

java.lang.Object
  extended by java.io.Reader
      extended by com.tangosol.util.NullImplementation.NullReader

All Implemented Interfaces:
java.io.Closeable, java.lang.Readable
Enclosing class:
NullImplementation

public static class NullImplementation.NullReader
extends java.io.Reader

A reader that does basically nothing. Note that multiple instances are required because the API dictates that the close method must cause further invocations to all other methods to throw an IOException.

Author:
jh 2012.03.28

Field Summary

 

Fields inherited from class java.io.Reader
lock

 

Method Summary
 void close()
          
 void mark(int cb)
          
 boolean markSupported()
          
 int read()
          
 int read(char[] ach)
          
 int read(char[] cbuf, int off, int len)
          
 int read(java.nio.CharBuffer buf)
          
 boolean ready()
          
 void reset()
          
 long skip(long ch)
          

 

Method Detail

mark

public void mark(int cb)
          throws java.io.IOException
Overrides:
mark in class java.io.Reader
Throws:
java.io.IOException

markSupported

public boolean markSupported()
Overrides:
markSupported in class java.io.Reader

read

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

read

public int read(char[] ach)
         throws java.io.IOException
Overrides:
read in class java.io.Reader
Throws:
java.io.IOException

read

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

read

public int read(java.nio.CharBuffer buf)
         throws java.io.IOException
Specified by:
read in interface java.lang.Readable
Overrides:
read in class java.io.Reader
Throws:
java.io.IOException

ready

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

reset

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

skip

public long skip(long ch)
          throws java.io.IOException
Overrides:
skip in class java.io.Reader
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in class java.io.Reader
Throws:
java.io.IOException

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.