Skip to main content

When using BufferedInputStream in Java...?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
soniabobit
Offline
Joined: 2013-11-23

One of the constructors is:

public BufferedInputStream(InputStream in, int size),

what is the default size and what is the UNIT of size ? Bits, bytes, charachters, ...?
________________________
Online fax

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Syed_Naved_Aali
Offline
Joined: 2013-11-28

The default size in-case you don't provide one is 8192.
Unit: its a byte array.