Package java.nio

Examples of java.nio.InvalidMarkException


    /**
     * @see ByteBuffer#reset()
     */
    public IoBuffer reset() {
        if (mark == null) {
            throw new InvalidMarkException();
        }
        position = mark.duplicate();
        return this;
    }
View Full Code Here


    /**
     * @see ByteBuffer#reset()
     */
    public IoBuffer reset() {
        if (mark == null) {
            throw new InvalidMarkException();
        }
        position = mark.duplicate();
        return this;
    }
View Full Code Here

    /**
     * @tests serialization/deserialization compatibility.
     */
    public void testSerializationSelf() throws Exception {

        SerializationTest.verifySelf(new InvalidMarkException());
    }
View Full Code Here

    /**
     * @tests serialization/deserialization compatibility with RI.
     */
    public void testSerializationCompatibility() throws Exception {

        SerializationTest.verifyGolden(this, new InvalidMarkException());
    }
View Full Code Here

    ensureWritable(buffer.capacity());
  }

  @Override
  public ByteBuf resetReaderIndex() {
    throw new InvalidMarkException();
  }
View Full Code Here

    throw new InvalidMarkException();
  }

  @Override
  public ByteBuf resetWriterIndex() {
    throw new InvalidMarkException();
  }
View Full Code Here

    /**
     * @tests serialization/deserialization compatibility.
     */
    public void testSerializationSelf() throws Exception {

        SerializationTest.verifySelf(new InvalidMarkException());
    }
View Full Code Here

    /**
     * @tests serialization/deserialization compatibility with RI.
     */
    public void testSerializationCompatibility() throws Exception {

        SerializationTest.verifyGolden(this, new InvalidMarkException());
    }
View Full Code Here

   
    /**
     *@tests {@link java.nio.InvalidMarkException#InvalidMarkException()}
     */
    public void test_Constructor() {
        InvalidMarkException exception = new InvalidMarkException();
        assertNull(exception.getMessage());
        assertNull(exception.getLocalizedMessage());
        assertNull(exception.getCause());
    }
View Full Code Here

    @Override
    public BuffersBuffer reset() {
        int m = mark;
        if (m < 0)
            throw new InvalidMarkException();
        position = m;
        return this;
    }
View Full Code Here

TOP

Related Classes of java.nio.InvalidMarkException

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.