IT. Expert System.

Android Reference

PrivateInputStream


javax.obex

Class PrivateInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable


    public final class PrivateInputStream
    extends InputStream
    This object provides an input stream to the Operation objects used in this package.
    • Constructor Summary

      Constructors
      Constructor and Description
      PrivateInputStream(BaseStream p)
      Creates an input stream for the Operation to read from
    • Method Summary

      Methods
      Modifier and Type Method and Description
      int available()
      Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
      void close()
      Closes the input stream.
      int read()
      Reads the next byte of data from the input stream.
      int read(byte[] b)
      Equivalent to read(buffer, 0, buffer.length).
      int read(byte[] b, int offset, int length)
      Reads at most length bytes from this stream and stores them in the byte array b starting at offset.
      void writeBytes(byte[] body, int start)
      Allows the OperationImpl thread to add body data to the input stream.
    • Constructor Detail

      • PrivateInputStream

        public PrivateInputStream(BaseStream p)
        Creates an input stream for the Operation to read from
        Parameters:
        p - the connection this input stream is for
    • Method Detail

      • available

        public int available()
                      throws IOException
        Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. The next caller might be the same thread or or another thread.
        Overrides:
        available in class InputStream
        Returns:
        the number of bytes that can be read from this input stream without blocking
        Throws:
        IOException - if an I/O error occurs
      • read

        public int read()
                 throws IOException
        Reads the next byte of data from the input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned. This method blocks until input data is available, the end of the stream is detected, or an exception is thrown.
        Specified by:
        read in class InputStream
        Returns:
        the byte read from the input stream or -1 if it reaches the end of stream
        Throws:
        IOException - if an I/O error occurs
      • read

        public int read(byte[] b,
               int offset,
               int length)
                 throws IOException
        Description copied from class: InputStream
        Reads at most length bytes from this stream and stores them in the byte array b starting at offset.
        Overrides:
        read in class InputStream
        Parameters:
        b - the byte array in which to store the bytes read.
        offset - the initial position in buffer to store the bytes read from this stream.
        length - the maximum number of bytes to store in b.
        Returns:
        the number of bytes actually read or -1 if the end of the stream has been reached.
        Throws:
        IOException - if the stream is closed or another IOException occurs.
      • writeBytes

        public void writeBytes(byte[] body,
                      int start)
        Allows the OperationImpl thread to add body data to the input stream.
        Parameters:
        body - the data to add to the stream
        start - the start of the body to array to copy


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: 127 / 158679480. Delta: 0.03543 с