Lines Matching refs:Java

8 These recipes work on all platforms: Java, Android, Kotlin/Native, and Kotlin/JS. See
9 [java.io Recipes](java_io_recipes.md) for samples that integrate Java APIs.
12 Read a text file line-by-line ([Java][ReadFileLineByLine]/[Kotlin][ReadFileLineByLineKt])
28 === "Java"
30 Here we use Java's `try` blocks to close our sources automatically.
77 === "Java"
79 The above Java program can be written more compactly by inlining the `fileSource` variable and
118 === "Java"
150 Write a text file ([Java][WriteFile]/[Kotlin][WriteFileKt])
177 === "Java"
222 UTF-8 ([Java][ExploreCharsets]/[Kotlin][ExploreCharsetsKt])
239 Though we use UTF-8 whenever we read or write strings in I/O, when they are in memory Java Strings
241 `char` for most characters, but some don’t fit. In particular, most emoji use two Java chars. This
264 === "Java"
290 Golden Values ([Java][GoldenValue]/[Kotlin][GoldenValueKt])
298 We’ll illustrate this by encoding a value using Java Serialization. Though we must disclaim that
299 Java Serialization is an awful encoding system and most programs should prefer other formats like
303 === "Java"
305 ```Java
336 3. We create an `ObjectOutputStream` (the encoding API for Java serialization) and write our object.
345 === "Java"
347 ```Java
371 === "Java"
373 ```Java
390 === "Java"
392 ```Java
417 === "Java"
419 ```Java
440 Write a binary file ([Java][BitmapEncoder]/[Kotlin][BitmapEncoderKt])
459 * **Signed vs. Unsigned.** Java doesn’t have unsigned primitive types (except for `char`!) so
483 === "Java"
485 ```Java
595 Communicate on a Socket ([Java][SocksProxyServer]/[Kotlin][SocksProxyServerKt])
629 === "Java"
631 ```Java
648 === "Java"
650 ```Java
676 === "Java"
678 ```Java
691 bitwise `&` operator is Java’s preferred idiom to convert a signed value into an unsigned value.
700 Java has no primitive type that can represent unsigned longs.
703 Hashing ([Java][Hashing]/[Kotlin][HashingKt])
706 We’re bombarded by hashing in our lives as Java programmers. Early on we're introduced to the
745 === "Java"
747 ```Java
767 === "Java"
769 ```Java
789 === "Java"
791 ```Java
812 === "Java"
814 ```Java
841 === "Java"
843 ```Java
858 On Android and Java, Okio uses Java’s `java.security.MessageDigest` for cryptographic hashes and
866 On Android and Java it's easy to encrypt streams.
873 === "Java"