3c859caf2b
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
17 lines
405 B
Kotlin
17 lines
405 B
Kotlin
import java.io.*
|
|
|
|
public class C {
|
|
fun foo() {
|
|
try {
|
|
ByteArrayInputStream(ByteArray(10)).use { stream ->
|
|
// reading something
|
|
val c = stream.read()
|
|
System.out.println(c)
|
|
}
|
|
} catch (e: IOException) {
|
|
System.out.println(e)
|
|
} finally {
|
|
System.out.println("Finally!")
|
|
}
|
|
}
|
|
} |