XReader.java revision 3233:b5d08bc0d224
1226995Smarius/* 2226995Smarius * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. 3226995Smarius * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4226995Smarius * 5226995Smarius * This code is free software; you can redistribute it and/or modify it 6226995Smarius * under the terms of the GNU General Public License version 2 only, as 7226995Smarius * published by the Free Software Foundation. 8226995Smarius * 9226995Smarius * This code is distributed in the hope that it will be useful, but WITHOUT 10226995Smarius * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11226995Smarius * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12226995Smarius * version 2 for more details (a copy is included in the LICENSE file that 13226995Smarius * accompanied this code). 14226995Smarius * 15226995Smarius * You should have received a copy of the GNU General Public License version 16226995Smarius * 2 along with this work; if not, write to the Free Software Foundation, 17226995Smarius * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18226995Smarius * 19226995Smarius * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20226995Smarius * or visit www.oracle.com if you need additional information or have any 21226995Smarius * questions. 22226995Smarius */ 23226995Smarius 24226995Smariuspackage pkg; 25226995Smarius 26226995Smariusimport java.io.*; 27226995Smarius 28226995Smariuspublic abstract class XReader extends FilterReader implements DataInput { 29226995Smarius 30226995Smarius /** 31226995Smarius * This tests overridding an external method. 32226995Smarius */ 33226995Smarius public int read() throws IOException { 34226995Smarius return 'W'; 35226995Smarius } 36226995Smarius 37226995Smarius /** 38226995Smarius * This tests implementing an external method. 39226995Smarius */ 40226995Smarius public int readInt() throws IOException { 41226995Smarius return 'W'; 42226995Smarius } 43226995Smarius} 44226995Smarius