Class EntryReader.DummyReader

java.lang.Object
java.io.Reader
org.plumelib.util.EntryReader.DummyReader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable
Enclosing class:
EntryReader

private static class EntryReader.DummyReader extends Reader
A dummy Reader to be used when null is not acceptable.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The canonical DummyReader.

    Fields inherited from class java.io.Reader

    lock
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    use it.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    mark(int readAheadLimit)
     
    boolean
     
    @org.checkerframework.checker.index.qual.GTENegativeOne int
     
    @org.checkerframework.checker.index.qual.IndexOrLow({"#1"}) int
    read(char[] cbuf)
     
    @org.checkerframework.checker.index.qual.IndexOrLow({"#1"}) int
    read(char[] cbuf, int off, int len)
     
    @org.checkerframework.checker.index.qual.GTENegativeOne int
    read(CharBuffer target)
     
    boolean
     
    void
     
    @org.checkerframework.checker.index.qual.NonNegative long
    skip(long n)
     

    Methods inherited from class java.io.Reader

    nullReader, transferTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • DummyReader

      @Deprecated public DummyReader()
      Deprecated.
      use it.
      Create a new DummyReader.
  • Method Details

    • close

      public void close(@GuardSatisfied EntryReader.DummyReader this)
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class Reader
    • mark

      public void mark(@GuardSatisfied EntryReader.DummyReader this, int readAheadLimit)
      Overrides:
      mark in class Reader
    • markSupported

      public boolean markSupported()
      Overrides:
      markSupported in class Reader
    • read

      public @org.checkerframework.checker.index.qual.GTENegativeOne int read(@GuardSatisfied EntryReader.DummyReader this)
      Overrides:
      read in class Reader
    • read

      public @org.checkerframework.checker.index.qual.IndexOrLow({"#1"}) int read(@GuardSatisfied EntryReader.DummyReader this, char[] cbuf)
      Overrides:
      read in class Reader
    • read

      public @org.checkerframework.checker.index.qual.IndexOrLow({"#1"}) int read(@GuardSatisfied EntryReader.DummyReader this, char[] cbuf, int off, int len)
      Specified by:
      read in class Reader
    • read

      public @org.checkerframework.checker.index.qual.GTENegativeOne int read(@GuardSatisfied EntryReader.DummyReader this, CharBuffer target)
      Specified by:
      read in interface Readable
      Overrides:
      read in class Reader
    • ready

      public boolean ready()
      Overrides:
      ready in class Reader
    • reset

      public void reset(@GuardSatisfied EntryReader.DummyReader this)
      Overrides:
      reset in class Reader
    • skip

      public @org.checkerframework.checker.index.qual.NonNegative long skip(@GuardSatisfied EntryReader.DummyReader this, long n)
      Overrides:
      skip in class Reader