ReadBuffer.java revision 2779:56d1e05e0def
1145519Sdarrenr/* 2145510Sdarrenr * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. 3145510Sdarrenr * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4255332Scy * 5145510Sdarrenr * This code is free software; you can redistribute it and/or modify it 6145510Sdarrenr * under the terms of the GNU General Public License version 2 only, as 7145510Sdarrenr * published by the Free Software Foundation. Oracle designates this 8145510Sdarrenr * particular file as subject to the "Classpath" exception as provided 9145510Sdarrenr * by Oracle in the LICENSE file that accompanied this code. 10145510Sdarrenr * 11145510Sdarrenr * This code is distributed in the hope that it will be useful, but WITHOUT 12145510Sdarrenr * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13145510Sdarrenr * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14145510Sdarrenr * version 2 for more details (a copy is included in the LICENSE file that 15255332Scy * accompanied this code). 16145510Sdarrenr * 17145510Sdarrenr * You should have received a copy of the GNU General Public License version 18145510Sdarrenr * 2 along with this work; if not, write to the Free Software Foundation, 19255332Scy * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20145510Sdarrenr * 21145510Sdarrenr * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22145510Sdarrenr * or visit www.oracle.com if you need additional information or have any 23170268Sdarrenr * questions. 24170268Sdarrenr */ 25145510Sdarrenr 26255332Scy 27145510Sdarrenr/* 28153881Sguido * The Original Code is HAT. The Initial Developer of the 29255332Scy * Original Code is Bill Foote, with contributions from others 30255332Scy * at JavaSoft/Sun. 31255332Scy */ 32145510Sdarrenr 33153881Sguidopackage jdk.test.lib.hprof.parser; 34145510Sdarrenr 35145510Sdarrenrimport java.io.IOException; 36145510Sdarrenr 37145510Sdarrenr/** 38145510Sdarrenr * Positionable read only buffer 39255332Scy * 40255332Scy * @author A. Sundararajan 41255332Scy */ 42255332Scypublic interface ReadBuffer extends AutoCloseable { 43145510Sdarrenr public char getChar(long pos) throws IOException; 44145510Sdarrenr public byte getByte(long pos) throws IOException; 45145510Sdarrenr public short getShort(long pos) throws IOException; 46145510Sdarrenr public int getInt(long pos) throws IOException; 47145510Sdarrenr public long getLong(long pos) throws IOException; 48145510Sdarrenr} 49145510Sdarrenr