Class AbstractSvetovidWriter

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void appendObject​(java.lang.StringBuilder builder, java.lang.String prefix, boolean printPrefix, java.lang.Object value)  
      void close()
      Closes this writer and releases any resources associated with the underlying stream.
      protected abstract void doFlush()  
      protected abstract void doPrint​(java.lang.String value)  
      protected abstract void doPrintln​(java.lang.String value)  
      boolean getAutoFlush()
      Returns whether this writer automatically flushes the underlying output stream and forces any buffered output bytes to be written out after every operation by calling SvetovidWriter.printbf().
      java.lang.Throwable getLastException()
      Returns the exception raised in the last operation; if the operation was successful and no exception was raised, returns null.
      java.lang.String getWhitespace()
      Returns the currently used whitespace.
      boolean isThrowingExceptions()
      Returns the indicator whether this writer will throw exceptions on I/O operation errors or just return default values.
      void print()
      Prints a whitespace.
      void print​(boolean value)
      Prints a boolean value as a human readable string.
      void print​(byte value)
      Prints a byte value as a human readable string.
      void print​(char value)
      Prints a character value as a human readable string.
      void print​(double value)
      Prints a double-precision floating-point value as a human readable string.
      void print​(float value)
      Prints a floating-point value as a human readable string.
      void print​(int value)
      Prints an integer value as a human readable string.
      void print​(long value)
      Prints a long integer value as a human readable string.
      void print​(short value)
      Prints a short integer value as a human readable string.
      void print​(java.lang.Object value)
      Prints an object as a human readable string.
      void print​(java.lang.String value)
      Prints a string.
      void printbf()
      Prints any buffered data to the underlying output stream and then flushes that stream.
      void printf​(java.lang.String format, java.lang.Object... arguments)
      Prints a formatted string using the specified format string and arguments.
      void println()
      Prints a line separator as defined by the line.separator system property.
      void println​(boolean value)
      Prints a boolean value and then terminates the line.
      void println​(boolean... value)
      Prints all given boolean values in sequence separated by whitespace and then terminates the line.
      void println​(boolean[][] value)
      Prints the given boolean matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(byte value)
      Prints a byte value and then terminates the line.
      void println​(byte... value)
      Prints all given byte values in sequence separated by whitespace and then terminates the line.
      void println​(byte[][] value)
      Prints the given byte matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(char value)
      Prints a character value and then terminates the line.
      void println​(char... value)
      Prints all given character values in sequence separated by whitespace and then terminates the line.
      void println​(char[][] value)
      Prints the given character matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(double value)
      Prints a double-precision floating-point value and then terminates the line.
      void println​(double... value)
      Prints all given double-precision floating-point values in sequence separated by whitespace and then terminates the line.
      void println​(double[][] value)
      Prints the given double-precision floating-point matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(float value)
      Prints a floating-point value and then terminates the line.
      void println​(float... value)
      Prints all given floating-point values in sequence separated by whitespace and then terminates the line.
      void println​(float[][] value)
      Prints the given floating-point matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(int value)
      Prints an integer value and then terminates the line.
      void println​(int... value)
      Prints all given integer values in sequence separated by whitespace and then terminates the line.
      void println​(int[][] value)
      Prints the given integer matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(long value)
      Prints a long integer value and then terminates the line.
      void println​(long... value)
      Prints all given long integer values in sequence separated by whitespace and then terminates the line.
      void println​(long[][] value)
      Prints the given long integer matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(short value)
      Prints a short integer value and then terminates the line.
      void println​(short... value)
      Prints all given short integer values in sequence separated by whitespace and then terminates the line.
      void println​(short[][] value)
      Prints the given short integer matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(java.lang.Boolean... value)
      Prints all given boolean values in sequence separated by whitespace and then terminates the line.
      void println​(java.lang.Boolean[][] value)
      Prints the given boolean matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(java.lang.Byte... value)
      Prints all given byte values in sequence separated by whitespace and then terminates the line.
      void println​(java.lang.Byte[][] value)
      Prints the given byte matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(java.lang.Character... value)
      Prints all given character values in sequence separated by whitespace and then terminates the line.
      void println​(java.lang.Character[][] value)
      Prints the given character matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(java.lang.Double... value)
      Prints all given double-precision floating-point values in sequence separated by whitespace and then terminates the line.
      void println​(java.lang.Double[][] value)
      Prints the given double-precision floating-point matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(java.lang.Float... value)
      Prints all given floating-point values in sequence separated by whitespace and then terminates the line.
      void println​(java.lang.Float[][] value)
      Prints the given floating-point matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(java.lang.Integer... value)
      Prints all given integer values in sequence separated by whitespace and then terminates the line.
      void println​(java.lang.Integer[][] value)
      Prints the given integer matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(java.lang.Long... value)
      Prints all given long integer values in sequence separated by whitespace and then terminates the line.
      void println​(java.lang.Long[][] value)
      Prints the given long integer matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(java.lang.Object value)
      Prints an object and then terminates the line.
      void println​(java.lang.Object... value)
      Prints all given objects in sequence separated by whitespace and then terminates the line.
      void println​(java.lang.Object[][] value)
      Prints the given object matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(java.lang.Short... value)
      Prints all given short integer values in sequence separated by whitespace and then terminates the line.
      void println​(java.lang.Short[][] value)
      Prints the given short integer matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void println​(java.lang.String value)
      Prints a string and then terminates the line.
      void println​(java.lang.String... value)
      Prints all given string values in sequence separated by whitespace and then terminates the line.
      void println​(java.lang.String[][] value)
      Prints the given string matrix row by row, each in the separate line, with the individual elements separated by whitespace.
      void printObject​(java.lang.Object value)
      Prints the given object in JSON (JavaScript Object Notation) format.
      void setAutoFlush​(boolean autoFlush)
      Configures whether this writer should automatically flush the underlying output stream and force any buffered output bytes to be written out after every operation by calling SvetovidWriter.printbf().
      void setThrowingExceptions​(boolean shouldThrow)
      Configures whether this writer should throw exceptions on I/O operation errors or just return default values.
      void setWhitespace​(java.lang.String whitespace)
      Sets the string used as whitespace.
      protected void wrapUpIOException​(java.io.IOException e)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • whitespace

        protected java.lang.String whitespace
      • autoFlush

        protected boolean autoFlush
      • throwingExceptions

        protected boolean throwingExceptions
      • LINE_SEPARATOR

        protected final java.lang.String LINE_SEPARATOR
      • BEGIN_OBJECT

        protected final java.lang.String BEGIN_OBJECT
      • BEGIN_ARRAY

        protected final java.lang.String BEGIN_ARRAY
      • VALUE_SEPARATOR

        protected final java.lang.String VALUE_SEPARATOR
    • Constructor Detail

      • AbstractSvetovidWriter

        public AbstractSvetovidWriter()