corba/src/share/classes/com/sun/corba/se/impl/encoding/CDRInputStream.java
changeset 11044 758078ec0816
parent 5555 b2b5ed3f0d0d
equal deleted inserted replaced
10853:4cc0ef72c812 11044:758078ec0816
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   421 
   421 
   422     protected final void setByteBufferWithInfo(ByteBufferWithInfo bbwi) {
   422     protected final void setByteBufferWithInfo(ByteBufferWithInfo bbwi) {
   423         impl.setByteBufferWithInfo(bbwi);
   423         impl.setByteBufferWithInfo(bbwi);
   424     }
   424     }
   425 
   425 
       
   426     /**
       
   427      * return true if our ByteBuffer is sharing/equal to bb
       
   428      */
       
   429     protected final boolean isSharing(ByteBuffer bb) {
       
   430         return (getByteBuffer() ==  bb);
       
   431     }
       
   432 
   426     public final int getBufferLength() {
   433     public final int getBufferLength() {
   427         return impl.getBufferLength();
   434         return impl.getBufferLength();
   428     }
   435     }
   429 
   436 
   430     protected final void setBufferLength(int value) {
   437     protected final void setBufferLength(int value) {