mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
New WriterOutputStream API
This commit is contained in:
parent
94bd9dceac
commit
31ad1d99c4
@ -55,7 +55,12 @@ class BlobInspectorTest {
|
||||
private fun run(resourceName: String): String {
|
||||
blobInspector.source = javaClass.getResource(resourceName)
|
||||
val writer = StringWriter()
|
||||
blobInspector.run(PrintStream(WriterOutputStream(writer, UTF_8)))
|
||||
val oStream = WriterOutputStream.builder()
|
||||
.setCharset(UTF_8)
|
||||
.setWriter(writer)
|
||||
.get()
|
||||
blobInspector.run(PrintStream(oStream))
|
||||
|
||||
val output = writer.toString()
|
||||
println(output)
|
||||
return output
|
||||
|
Loading…
Reference in New Issue
Block a user