IT. Expert System.

Android Reference

FilterWriter


java.io

Class FilterWriter

  • All Implemented Interfaces:
    Closeable, Flushable, Appendable, AutoCloseable


    public abstract class FilterWriter
    extends Writer
    Wraps an existing Writer and performs some transformation on the output data while it is being written. Transformations can be anything from a simple byte-wise filtering output data to an on-the-fly compression or decompression of the underlying writer. Writers that wrap another writer and provide some additional functionality on top of it usually inherit from this class.
    See Also:
    FilterReader
    • Field Summary

      Fields
      Modifier and Type Field and Description
      protected Writer out
      The Writer being filtered.
    • Constructor Summary

      Constructors
      Modifier Constructor and Description
      protected FilterWriter(Writer out)
      Constructs a new FilterWriter on the Writer out.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      void close()
      Closes this writer.
      void flush()
      Flushes this writer to ensure all pending data is sent out to the target writer.
      void write(char[] buffer, int offset, int count)
      Writes count characters from the char array buffer starting at position offset to the target writer.
      void write(int oneChar)
      Writes the specified character oneChar to the target writer.
      void write(String str, int offset, int count)
      Writes count characters from the string str starting at position index to this writer.
    • Field Detail

      • out

        protected Writer out
        The Writer being filtered.
    • Constructor Detail

      • FilterWriter

        protected FilterWriter(Writer out)
        Constructs a new FilterWriter on the Writer out. All writes are now filtered through this writer.
        Parameters:
        out - the target Writer to filter writes on.
    • Method Detail

      • flush

        public void flush()
                   throws IOException
        Flushes this writer to ensure all pending data is sent out to the target writer. This implementation flushes the target writer.
        Specified by:
        flush in interface Flushable
        Specified by:
        flush in class Writer
        Throws:
        IOException - if an error occurs attempting to flush this writer.
      • write

        public void write(char[] buffer,
                 int offset,
                 int count)
                   throws IOException
        Writes count characters from the char array buffer starting at position offset to the target writer.
        Specified by:
        write in class Writer
        Parameters:
        buffer - the buffer to write.
        offset - the index of the first character in buffer to write.
        count - the number of characters in buffer to write.
        Throws:
        IOException - if an error occurs while writing to this writer.
      • write

        public void write(int oneChar)
                   throws IOException
        Writes the specified character oneChar to the target writer. Only the two least significant bytes of the integer oneChar are written.
        Overrides:
        write in class Writer
        Parameters:
        oneChar - the char to write to the target writer.
        Throws:
        IOException - if an error occurs while writing to this writer.
      • write

        public void write(String str,
                 int offset,
                 int count)
                   throws IOException
        Writes count characters from the string str starting at position index to this writer. This implementation writes str to the target writer.
        Overrides:
        write in class Writer
        Parameters:
        str - the string to be written.
        offset - the index of the first character in str to write.
        count - the number of chars in str to write.
        Throws:
        IOException - if an error occurs while writing to this writer.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 278 / . Delta: 0.01928 с