AnyLogic
Expand
Font size
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

@AnyLogicInternalAPI
public class ConsoleItemPrintStream
extends PrintStream
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.

Method Summary

Modifier and TypeMethodDescription
PrintStreamappend(char c) 
PrintStreamappend(CharSequence csq) 
PrintStreamappend(CharSequence csq, int start, int end) 
booleancheckError() 
voidclose() 
voidflush() 
PrintStreamformat(String format, Object... args) 
PrintStreamformat(Locale l, String format, Object... args) 
static ColorgetColorAndSet(PrintStream out, Color color)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
voidprint(boolean b) 
voidprint(char c) 
voidprint(char[] s) 
voidprint(double d) 
voidprint(float f) 
voidprint(int i) 
voidprint(long l) 
voidprint(Object obj) 
voidprint(String s) 
PrintStreamprintf(String format, Object... args) 
PrintStreamprintf(Locale l, String format, Object... args) 
voidprintln() 
voidprintln(boolean x) 
voidprintln(char x) 
voidprintln(char[] x) 
voidprintln(double x) 
voidprintln(float x) 
voidprintln(int x) 
voidprintln(long x) 
voidprintln(Object x) 
voidprintln(String x) 
voidsetColor(Color color) 
static voidsetColor(PrintStream out, Color color)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
voidwrite(byte[] b) 
voidwrite(byte[] buf, int off, int len) 
voidwrite(int b) 

Methods inherited from class java.io.PrintStream

writeBytes

Methods inherited from class java.io.OutputStream

nullOutputStream

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

setColor

@AnyLogicInternalAPI
public static void setColor(PrintStream out,
 Color color)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

getColorAndSet

@AnyLogicInternalAPI
public static Color getColorAndSet(PrintStream out,
 Color color)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

setColor

public void setColor(Color color)

flush

public void flush()
Specified by:
flush in interface Flushable
Overrides:
flush in class PrintStream

close

public void close()
Specified by:
close in interface AutoCloseable
Specified by:
close in interface Closeable
Overrides:
close in class PrintStream

checkError

public boolean checkError()
Overrides:
checkError in class PrintStream

write

public void write(int b)
Overrides:
write in class PrintStream

write

public void write(byte[] buf,
 int off,
 int len)
Overrides:
write in class PrintStream

print

public void print(boolean b)
Overrides:
print in class PrintStream

print

public void print(char c)
Overrides:
print in class PrintStream

print

public void print(int i)
Overrides:
print in class PrintStream

print

public void print(long l)
Overrides:
print in class PrintStream

print

public void print(float f)
Overrides:
print in class PrintStream

print

public void print(double d)
Overrides:
print in class PrintStream

print

public void print(char[] s)
Overrides:
print in class PrintStream

print

public void print(String s)
Overrides:
print in class PrintStream

print

public void print(Object obj)
Overrides:
print in class PrintStream

println

public void println()
Overrides:
println in class PrintStream

println

public void println(boolean x)
Overrides:
println in class PrintStream

println

public void println(char x)
Overrides:
println in class PrintStream

println

public void println(int x)
Overrides:
println in class PrintStream

println

public void println(long x)
Overrides:
println in class PrintStream

println

public void println(float x)
Overrides:
println in class PrintStream

println

public void println(double x)
Overrides:
println in class PrintStream

println

public void println(char[] x)
Overrides:
println in class PrintStream

println

public void println(String x)
Overrides:
println in class PrintStream

println

public void println(Object x)
Overrides:
println in class PrintStream

printf

public PrintStream printf(String format,
 Object... args)
Overrides:
printf in class PrintStream

printf

public PrintStream printf(Locale l,
 String format,
 Object... args)
Overrides:
printf in class PrintStream

format

public PrintStream format(String format,
 Object... args)
Overrides:
format in class PrintStream

format

public PrintStream format(Locale l,
 String format,
 Object... args)
Overrides:
format in class PrintStream

append

public PrintStream append(CharSequence csq)
Specified by:
append in interface Appendable
Overrides:
append in class PrintStream

append

public PrintStream append(CharSequence csq,
 int start,
 int end)
Specified by:
append in interface Appendable
Overrides:
append in class PrintStream

append

public PrintStream append(char c)
Specified by:
append in interface Appendable
Overrides:
append in class PrintStream

write

public void write(byte[] b)
           throws IOException
Overrides:
write in class PrintStream
Throws:
IOException