Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSMutableRange


        }
       
        @Override
        public void writeByte(byte byte0) throws IOException {
            assureLength(filePointer+1);
            NSMutableRange range = new NSMutableRange((int)filePointer, 1);
            byte[] bytes = data().bytesNoCopy(range);
            bytes[(int) filePointer] = byte0;
            filePointer += 1;
            dirty = true;
        }
View Full Code Here


        }

        @Override
        public void writeBytes(byte[] abyte0, int offset, int len) throws IOException {
            assureLength(filePointer+len);
            NSMutableRange range = new NSMutableRange((int)filePointer, len);
            byte[] bytes = data().bytesNoCopy(range);
            System.arraycopy(abyte0, offset, bytes, (int)filePointer, len);
            filePointer += len;
            dirty = true;
        }
View Full Code Here

        }

        @Override
        public void readBytes(byte[] abyte0, int offset, int len) throws IOException {
            assureLength(filePointer+len);
            System.arraycopy(data().bytesNoCopy(new NSMutableRange((int)filePointer, len)), (int)filePointer, abyte0, offset, len);
            filePointer += len;
        }
View Full Code Here

TOP

Related Classes of com.webobjects.foundation.NSMutableRange

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.