You are on page 1of 2
‘oxjoar2024, 14:20 Lesson: Basle 10 (The Java™ Tutorials > Essential Java Classes) Documentation The Java™ Tutorials ‘rai: Essential Java Classes The Java Tutorials have been writen for JDK 8, Examples and practices desenbed in his page dont tke advantage of improvements introduced in lator eloasos and might use technology no longer avaiable, ‘See Java Language Changes fora summary of updated language features in Java SE 9 and subsequent releases. ‘See JDK Release Notes for information about new features, enhancements, and removed or deprecated options forall JOK releases. Lesson: Basic VO ‘This lesson covers the Java platform classes used for basic UO. It fist focuses on VO Straams, a powerful concept that greatly simplifies YO ‘operations, The lesson as looks a serialization, which les program wie whole objec ou fo steams and read them back again, Then the lesson looks a fle 10 and fle sysiem operations, including random access fies. Most ofthe classes covered inthe 1/0 Stross section the sava.nio. fie package. in the Sas. 1 package. Most ofthe classes coveredin the Fs 19. 1/0 secon are in VO Streams + Byte Steams handle 10 of raw binary data, ‘+ Character Streams handle UO of charactor data, automaticaly handling translation to an from the local charactr sel + Buore Streams optimize input and output by reducing the numberof clit the native AP ‘+ Scanning and Formatting allows a rogram to read and write formated tex ‘+ 10 from the Command Line desesbes the Slandaré Streams andthe Console abjoct + Data Sireams handle binary UO of primitive datatype and sexing values. + Objoct Stroans handle binary VO of object le HO (Featuring NIO.2) “+ What is @ Pan? examines the concapt ofa path on a filesystem, + The Path Class intduces the comerstone class ofthe javs.nio. file package. + Path Operations looks at methods in he Pach elass that dea wth syntacte operations, + Fle Operations nroduces concepts common to many ofthe fle UO methods. ‘+ Ghocking a File or Drectory shows how to check afle's existence and is + Deleting a File or Directory. + Copying a File or Directory 4+ Moving a Filo or Directoy. + Managing Metadata explains how to read and set fle atioutes, ‘+ Reacing, Wiring and Creating Files shows the steam and channel methods for reading and wring les ‘+ Random Accoss Flos shows how fo read or write fs in a non-sequentally manner. ‘+ Creating and Rescing Directories covers API specific to directories, such as how to Ista dectn’s contents. + Links, Symbolic or Otherwise covers issues specific to symbolic and hard Inks. + Waking the File Tree demonsirates howto recursively visit each fle and directory in fe ree + Finding Flos shows how to search for fls using pattern matching, + ‘Watching @ Ovectory for Changes shows how to use the waten service te detec fle that are added, removed or updated in one oF more directories. ‘+ Otho" Useful Nothods covers important API that dn ft alsewhare in tho lesson. ‘+ Legacy File UO Code shows how to leverage Pat functionlty if you have older code using the java.io. Pie dass. table mapping Java. to.FLieAPIIo java.nio. £26 APIis provided. 0 of accessibity, Summary ‘summary ofthe key points covered in his tra. Questions and Exercises ‘Test what you've earned inthis all by tying these questions and exercises The WO Classes in Action ntps:ifdocs oracle. comijavaseltuoriallessentiaVo! we ‘oxjoar2024, 14:20 Lesson: Basle 10 (The Java™ Tutorials > Essential Java Classes) Many of the examples inthe next tral, Custom Networking use the UO streams described inthis lesson to rea from and wrt to network connections, Securlty consideration: Some 11 operations are subject to approval by the curent secuy manager. The example programs contained in those lessons ae standalone applications, which by default have no secutly manager. To workin an apple, most ofthese examples would have tobe modified. See What Applets Can and Cannt Oo for information about the secur restictons placad on applets ‘Pom Oa Conte Ue ep Note [Tor se Your Py cept ©1885, 222 Ole ee fae Ah eee Previous page: Previous Lesson Next page: 10 Streams ntps:ifdocs oracle. comijavaseltuoriallessentiaVo! 22.

You might also like