Package java.nio.channels

Examples of java.nio.channels.NonReadableChannelException


  }

  protected final FileLock basicLock(long position, long size,
      boolean shared, boolean wait) throws IOException {
    if (shared) {
      throw new NonReadableChannelException();
    }
    return super.basicLock(position, size, shared, wait);
  }
View Full Code Here


            throws IOException {
        openCheck();
        if (!target.isOpen()) {
            throw new ClosedChannelException();
        }
        throw new NonReadableChannelException();
    }
View Full Code Here

            throws IOException {
        if (offset < 0 || length < 0 || offset + length > buffers.length) {
            throw new IndexOutOfBoundsException();
        }
        openCheck();
        throw new NonReadableChannelException();
    }
View Full Code Here

        throw new NonReadableChannelException();
    }

    public int read(ByteBuffer buffer) throws IOException {
        openCheck();
        throw new NonReadableChannelException();
    }
View Full Code Here

            throw new NullPointerException();
        }
        if (position < 0) {
            throw new IllegalArgumentException();
        }
        throw new NonReadableChannelException();
    }
View Full Code Here

    }

    protected final FileLock basicLock(long position, long size,
            boolean shared, boolean wait) throws IOException {
        if (shared) {
            throw new NonReadableChannelException();
        }
        return super.basicLock(position, size, shared, wait);
    }
View Full Code Here

    return new JimfsAsynchronousFileChannel(this, executor);
  }

  void checkReadable() {
    if (!read) {
      throw new NonReadableChannelException();
    }
  }
View Full Code Here

  synchronized int read(byte[] buffer, int off, int len)
   throws IOException
  {
   int fd = getNativeFD();
   if ((mode & FileChannelImpl.READ) == 0)
    throw new NonReadableChannelException();
   return fileRead(fd, buffer, off, len, isNonBlocking);
  }
View Full Code Here

  {
    if (!isOpen ())
      throw new ClosedChannelException ();

    if ((mode & READ) == 0)
       throw new NonReadableChannelException ();

    boolean completed = false;
    int result;
    try
      {
View Full Code Here

    if (!isOpen ())
      throw new ClosedChannelException ();

    if ((mode & READ) == 0)
       throw new NonReadableChannelException ();

    boolean completed = false;
    int result;
    try
      {
View Full Code Here

TOP

Related Classes of java.nio.channels.NonReadableChannelException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.