Package lumis.portal
Class PortalPrintWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.PrintWriter
-
- lumis.portal.PortalPrintWriter
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.Appendable
,java.lang.AutoCloseable
- Direct Known Subclasses:
DefaultPortalPrintWriter
@StableMinor(version="16.1", sinceVersion="7.0") public abstract class PortalPrintWriter extends java.io.PrintWriter
PrintWriter
with uniqueness feature.This class is only stable for public methods usage. Artifacts of construction or visible by inheritance are not considered stable.
- Since:
- 4.0.0
- Version:
- $Revision: 26156 $ $Date: 2024-01-13 10:26:46 -0300 (Sat, 13 Jan 2024) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PortalPrintWriter.WritePosition
Defines the position the item will be written.
-
Constructor Summary
Constructors Constructor Description PortalPrintWriter(java.io.Writer out)
PortalPrintWriter(java.io.Writer out, boolean autoFlush)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract IUniqueWriterController
getUniqueWriterController()
Returns thecontroller
that will handle before writes.java.lang.String
print(boolean b, java.lang.String uniqueKey)
java.lang.String
print(boolean b, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
print(char[] s, java.lang.String uniqueKey)
java.lang.String
print(char[] s, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
print(char c, java.lang.String uniqueKey)
java.lang.String
print(char c, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
print(double d, java.lang.String uniqueKey)
java.lang.String
print(double d, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
print(float f, java.lang.String uniqueKey)
java.lang.String
print(float f, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
print(int i, java.lang.String uniqueKey)
java.lang.String
print(int i, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
print(long l, java.lang.String uniqueKey)
java.lang.String
print(long l, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
print(java.lang.Object obj, java.lang.String uniqueKey)
java.lang.String
print(java.lang.Object obj, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
print(java.lang.String s, java.lang.String uniqueKey)
java.lang.String
print(java.lang.String s, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
println(boolean x, java.lang.String uniqueKey)
java.lang.String
println(boolean x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
println(char[] x, java.lang.String uniqueKey)
java.lang.String
println(char[] x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
println(char x, java.lang.String uniqueKey)
java.lang.String
println(char x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
println(double x, java.lang.String uniqueKey)
java.lang.String
println(double x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
println(float x, java.lang.String uniqueKey)
java.lang.String
println(float x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
println(int x, java.lang.String uniqueKey)
java.lang.String
println(int x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
println(long x, java.lang.String uniqueKey)
java.lang.String
println(long x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
println(java.lang.Object x, java.lang.String uniqueKey)
java.lang.String
println(java.lang.Object x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
println(java.lang.String x, java.lang.String uniqueKey)
java.lang.String
println(java.lang.String x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
write(char[] buf, int off, int len, java.lang.String uniqueKey)
java.lang.String
write(char[] buf, int off, int len, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
write(char[] buf, java.lang.String uniqueKey)
java.lang.String
write(char[] buf, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
write(int c, java.lang.String uniqueKey)
java.lang.String
write(int c, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
write(java.lang.String s, int off, int len, java.lang.String uniqueKey)
java.lang.String
write(java.lang.String s, int off, int len, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
java.lang.String
write(java.lang.String s, java.lang.String uniqueKey)
java.lang.String
write(java.lang.String s, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
Methods inherited from class java.io.PrintWriter
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
-
-
-
-
Method Detail
-
getUniqueWriterController
protected abstract IUniqueWriterController getUniqueWriterController()
Returns thecontroller
that will handle before writes. Must not benull
.- Returns:
- the
controller
that will handle before writes. - Since:
- 16.0.0
-
print
public java.lang.String print(boolean b, java.lang.String uniqueKey)
-
print
public java.lang.String print(boolean b, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
print
public java.lang.String print(char c, java.lang.String uniqueKey)
-
print
public java.lang.String print(char c, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
print
public java.lang.String print(char[] s, java.lang.String uniqueKey)
-
print
public java.lang.String print(char[] s, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
print
public java.lang.String print(double d, java.lang.String uniqueKey)
-
print
public java.lang.String print(double d, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
print
public java.lang.String print(float f, java.lang.String uniqueKey)
-
print
public java.lang.String print(float f, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
print
public java.lang.String print(int i, java.lang.String uniqueKey)
-
print
public java.lang.String print(int i, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
print
public java.lang.String print(long l, java.lang.String uniqueKey)
-
print
public java.lang.String print(long l, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
print
public java.lang.String print(java.lang.Object obj, java.lang.String uniqueKey)
-
print
public java.lang.String print(java.lang.Object obj, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
print
public java.lang.String print(java.lang.String s, java.lang.String uniqueKey)
-
print
public java.lang.String print(java.lang.String s, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
println
public java.lang.String println(boolean x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
println
public java.lang.String println(boolean x, java.lang.String uniqueKey)
-
println
public java.lang.String println(char x, java.lang.String uniqueKey)
-
println
public java.lang.String println(char x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
println
public java.lang.String println(char[] x, java.lang.String uniqueKey)
-
println
public java.lang.String println(char[] x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
println
public java.lang.String println(double x, java.lang.String uniqueKey)
-
println
public java.lang.String println(double x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
println
public java.lang.String println(float x, java.lang.String uniqueKey)
-
println
public java.lang.String println(float x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
println
public java.lang.String println(int x, java.lang.String uniqueKey)
-
println
public java.lang.String println(int x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
println
public java.lang.String println(long x, java.lang.String uniqueKey)
-
println
public java.lang.String println(long x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
println
public java.lang.String println(java.lang.Object x, java.lang.String uniqueKey)
-
println
public java.lang.String println(java.lang.Object x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
println
public java.lang.String println(java.lang.String x, java.lang.String uniqueKey)
-
println
public java.lang.String println(java.lang.String x, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
write
public java.lang.String write(char[] buf, int off, int len, java.lang.String uniqueKey)
-
write
public java.lang.String write(char[] buf, int off, int len, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
write
public java.lang.String write(char[] buf, java.lang.String uniqueKey)
-
write
public java.lang.String write(char[] buf, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
write
public java.lang.String write(int c, java.lang.String uniqueKey)
-
write
public java.lang.String write(int c, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
write
public java.lang.String write(java.lang.String s, int off, int len, java.lang.String uniqueKey)
-
write
public java.lang.String write(java.lang.String s, int off, int len, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
write
public java.lang.String write(java.lang.String s, java.lang.String uniqueKey)
-
write
public java.lang.String write(java.lang.String s, java.lang.String uniqueKey, PortalPrintWriter.WritePosition position)
-
-