This resource could be a network socket, a byte buffer, or even a simple file. InputStream is used to read in data from a resource while OutputStream is used to write data to a resource. There are two main types of streams which most other streams inherit from, InputStream and OutputStream. In that instance, we were using an InputStream to read in data from a remote source. You saw an example of a stream when working with networking and API calls. Streams are objects that are used to pipe data into or out of a resource. How do we actually access these files we're storing on the device, what about create new files, and finally store data to and read data from these files? To do this, we use what's known as a stream.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |