IT. Expert System.

Android Reference

OutputStream


java.io

Class OutputStream

    • Constructor Summary

      Constructors
      Constructor and Description
      OutputStream()
      Default constructor.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      void close()
      Closes this stream.
      void flush()
      Flushes this stream.
      void write(byte[] buffer)
      Equivalent to write(buffer, 0, buffer.length).
      void write(byte[] buffer, int offset, int count)
      Writes count bytes from the byte array buffer starting at position offset to this stream.
      abstract void write(int oneByte)
      Writes a single byte to this stream.
    • Constructor Detail

      • OutputStream

        public OutputStream()
        Default constructor.
    • Method Detail

      • close

        public void close()
                   throws IOException
        Closes this stream. Implementations of this method should free any resources used by the stream. This implementation does nothing.
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface AutoCloseable
        Throws:
        IOException - if an error occurs while closing this stream.
      • flush

        public void flush()
                   throws IOException
        Flushes this stream. Implementations of this method should ensure that any buffered data is written out. This implementation does nothing.
        Specified by:
        flush in interface Flushable
        Throws:
        IOException - if an error occurs while flushing this stream.
      • write

        public void write(byte[] buffer)
                   throws IOException
        Equivalent to write(buffer, 0, buffer.length).
        Throws:
        IOException
      • write

        public void write(byte[] buffer,
                 int offset,
                 int count)
                   throws IOException
        Writes count bytes from the byte array buffer starting at position offset to this stream.
        Parameters:
        buffer - the buffer to be written.
        offset - the start position in buffer from where to get bytes.
        count - the number of bytes from buffer to write to this stream.
        Throws:
        IOException - if an error occurs while writing to this stream.
        IndexOutOfBoundsException - if offset < 0 or count < 0, or if offset + count is bigger than the length of buffer.
      • write

        public abstract void write(int oneByte)
                            throws IOException
        Writes a single byte to this stream. Only the least significant byte of the integer oneByte is written to the stream.
        Parameters:
        oneByte - the byte to be written.
        Throws:
        IOException - if an error occurs while writing to this stream.


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: 492 / . Delta: 0.03766 с