public final class StreamUtil extends Object
| コンストラクタと説明 |
|---|
StreamUtil() |
public static Collection<String> readLines(InputStream is, CharsetDecoder decoder) throws IOException
IOExceptionpublic static Collection<String> readLines(InputStream is, String encoding) throws IOException
IOExceptionpublic static Collection<String> readLines(Reader reader, Predicate<String> test) throws IOException
IOExceptionpublic static String readAsString(InputStream is, CharsetDecoder decoder) throws IOException
IOExceptionpublic static String readAsString(InputStream is, String encodingName) throws IOException
IOExceptionpublic static String readAsString(Reader reader) throws IOException
IOExceptionpublic static byte[] readAsBytes(InputStream is) throws IOException
IOExceptionpublic static byte[] readAsBytes(InputStream is, int count) throws IOException
IOExceptionpublic static int readFully(InputStream is, byte[] buff) throws IOException
IOExceptionpublic static void writeString(OutputStream os, String string, CharsetEncoder encoder) throws IOException
IOExceptionpublic static void writeString(OutputStream os, String string, String encodingName) throws IOException
IOExceptionpublic static Reader createUTF8Reader(InputStream is)
public static Writer createUTF8Writer(OutputStream os)
public static int transfer(InputStream is, OutputStream os) throws IOException
IOExceptionpublic static int transfer(InputStream is, OutputStream os, int count) throws IOException
IOExceptionpublic static int transfer(Reader reader, Writer writer) throws IOException
IOExceptionpublic static void withPrintWriter(OutputStream os, String encoding, BlockPE<PrintWriter,IOException> block) throws FileNotFoundException, UnsupportedEncodingException, IOException
Copyright © 2018. All rights reserved.