//================================================================================================== // S t a n d a r d Java // I n p u t T e x t F i l e // By Bruno Bachelet //================================================================================================== // Copyright (c) 1999-2016 // Bruno Bachelet - bruno@nawouak.net - http://www.nawouak.net // // This file is part of the B++ Library. This library is free software; you can redistribute it // and/or modify it under the terms of the GNU Library General Public License as published by the // Free Software Foundation; either version 2 of the License, or (at your option) any later // version. // // This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See // the GNU Library General Public License for more details (http://www.gnu.org).
/*DESCRIPTION*/ /* This module provides an abstract input text stream. */
// Package //--------------------------------------------------------------------------------------- package bpp.standard;
// Importation //----------------------------------------------------------------------------------- import java.io.*;
// I n p u t T e x t S t r e a m Class //---------------------------------------------------------- /*CLASS InputTextStream */ /* Represents an input text stream. */ public abstract class InputTextStream { //---------------------------------------------------------------------------------------ReadString /*AMETHOD InputTextStream */ /* Reads a string from the stream. */ public abstract String readString() throws Exception; // //-----------------------------------------------------------------------------------------ReadLine /*AMETHOD InputTextStream */ /* Reads a line from the stream. */ public abstract String readLine() throws Exception; // //--------------------------------------------------------------------------------------ReadInteger /*AMETHOD InputTextStream */ /* Reads an integer from the stream. */ public abstract int readInteger() throws Exception; // //-----------------------------------------------------------------------------------------ReadReal /*AMETHOD InputTextStream */ /* Reads a real number from the stream. */ public abstract double readReal() throws Exception; // //------------------------------------------------------------------------------------------IsEnded /*AMETHOD InputTextStream */ /* Indicates if the stream is ended. */ public abstract boolean isEnded() throws Exception; // }
// End //------------------------------------------------------------------------------------------- |
|