Class EncryptionStream

    • Method Detail

      • read

        public int read​(byte[] b)
                 throws IOException
        Reads up to len bytes of data from the input stream into an array of bytes.

        An attempt is made to read as many as len bytes, but a smaller number may be read. The number of bytes actually read is returned as an integer.

        Overrides:
        read in class InputStream
        Parameters:
        b - The buffer into which the data is read.
        Returns:
        The total number of bytes read into the buffer, or -1 if there is no more data because the end of the stream has been reached.
        Throws:
        IOException