#great-lounge Monday 30 August 2021
56 messages11 people
- S
- J02:24I made it light without the dispenser but that's the frame size now
- S02:25im so used to the og portal shape
- J02:25The old dev portal used to be 1x2
- S
- C
- S
- C
- C
- C
- CBreeding with oranges will be in the next release, for now I think you can use moa eggs that moas lay to get more moas16:42Someone else on the team should back me up
- K
- C
- C17:13thanks for help
- G
- K
- R
- G
- G
Replying tokalucky0elaborate
java.io.Fileis old and crusty,java.nio.file.Pathis new and powerful.18:58"new"18:59It was added in 1.7.(edited) - K19:00Any performance gains? Were there any benchmarks?
- GA great example is
// Access a regular file var path = Path.of("file"): try(var stream = Files.newInputStream(path){ } // Access a zip file var zipFs = FileSystems.newFileSystem(Path.of("zipFile.zip")); zipFs.getPath("file"); try(var stream = Files.newInputStream(zipFs)){ }19:01It is very flexible.19:01It also has better support for threading and native buffers.19:01If you use different APIs.19:02Path > File19:02Wouldn't surprise me if File ends up being a Path wrapper one day, the reflection package is going to be implemented with the invocation APIs. - K19:05Even though I use completely different API
- RPath Operations (The Java™ Tutorials > Essentia...This Java tutorial describes exceptions, basic input/output, concurrency, regular expressions, and the platform environment19:34File I/O (Featuring NIO.2) (The Java™ Tutorials > ...This Java tutorial describes exceptions, basic input/output, concurrency, regular expressions, and the platform environment19:35Legacy File I/O Code (The Java™ Tutorials > Ess...This Java tutorial describes exceptions, basic input/output, concurrency, regular expressions, and the platform environment
- A
- D19:52hi everyone
- C
- J
- J