//================================================================================================== // S t a n d a r d Java // O u t p u t T e x t S t r e a m // 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 output text stream. */
// Package //--------------------------------------------------------------------------------------- package bpp.standard;
// O u t p u t T e x t S t r e a m Class //-------------------------------------------------------- /*CLASS OutputTextStream */ /* Represents an output text stream. */ public abstract class OutputTextStream { //----------------------------------------------------------------------------------------WriteLine /*AMETHOD OutputTextStream */ /* Terminates the line in the stream. */ public abstract void writeLine(); // //-----------------------------------------------------------------------------------Write (String) /*AMETHOD OutputTextStream */ /* Writes a string into the stream. */ public abstract void write(String agString); // //-------------------------------------------------------------------------------WriteLine (String) /*AMETHOD OutputTextStream */ /* Writes a string and terminates the line in the stream. */ public abstract void writeLine(String agString); // //----------------------------------------------------------------------------------Write (Integer) /*AMETHOD OutputTextStream */ /* Writes an integer into the stream. */ public abstract void write(int agInteger); // //------------------------------------------------------------------------------WriteLine (Integer) /*AMETHOD OutputTextStream */ /* Writes an integer and terminates the line in the stream. */ public abstract void writeLine(int agInteger); // //-------------------------------------------------------------------------------------Write (Real) /*AMETHOD OutputTextStream */ /* Writes a real number into the stream. */ public abstract void write(double agReal); // //---------------------------------------------------------------------------------WriteLine (Real) /*AMETHOD OutputTextStream */ /* Writes a real number and terminates the line in the stream. */ public abstract void writeLine(double agReal); // }
// End //------------------------------------------------------------------------------------------- |
|