What is the use of the FileDescriptor class in Java and its in, out, and err methods?

What is the use of the FileDescriptor class in Java? We can only get it using getFD () methods in streams, and then we can use the resulting FD to create another instance, say, FileInputStream, which we can also do by creating a FileInputStream object with the same file name (instead of using its FD) .

In addition, the in, out, and err methods. what use can they be applied to?

+3
source share
1 answer

As JavaDoc says:

, , , . - FileInputStream FileOutputStream, .

.

, JDK

+2

Source: https://habr.com/ru/post/1775956/


All Articles