public final class IOHelp extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_BUFFER_SIZE |
static int |
DEFAULT_DATA_SIZE |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
close(AutoCloseable autoCloseable) |
static void |
close(AutoCloseable a1,
AutoCloseable a2) |
static void |
close(AutoCloseable a1,
AutoCloseable a2,
AutoCloseable a3) |
static void |
flush(Flushable flushable) |
static void |
flush(Flushable f1,
Flushable f2) |
static BufferedInputStream |
getBis(File file) |
static BufferedInputStream |
getBis(File file,
int size) |
static BufferedInputStream |
getBis(InputStream is) |
static BufferedInputStream |
getBis(InputStream is,
int size) |
static BufferedInputStream |
getBis(String path) |
static BufferedInputStream |
getBis(String path,
int size) |
static BufferedOutputStream |
getBos(File file) |
static BufferedOutputStream |
getBos(File file,
boolean append,
int size) |
static BufferedOutputStream |
getBos(OutputStream os) |
static BufferedOutputStream |
getBos(OutputStream os,
int size) |
static BufferedOutputStream |
getBos(String path) |
static BufferedOutputStream |
getBos(String path,
boolean append,
int size) |
static BufferedReader |
getBr(File file) |
static BufferedReader |
getBr(File file,
int size) |
static BufferedReader |
getBr(InputStream is) |
static BufferedReader |
getBr(InputStream is,
Charset charset) |
static BufferedReader |
getBr(InputStream is,
Charset charset,
int size) |
static BufferedReader |
getBr(Reader reader) |
static BufferedReader |
getBr(Reader reader,
int size) |
static BufferedReader |
getBr(String path) |
static BufferedReader |
getBr(String path,
int size) |
static BufferedWriter |
getBw(File file) |
static BufferedWriter |
getBw(File file,
boolean append,
int size) |
static BufferedWriter |
getBw(OutputStream os) |
static BufferedWriter |
getBw(OutputStream os,
Charset charset) |
static BufferedWriter |
getBw(OutputStream os,
Charset charset,
int size) |
static BufferedWriter |
getBw(String path) |
static BufferedWriter |
getBw(String path,
boolean append,
int size) |
static BufferedWriter |
getBw(Writer writer) |
static BufferedWriter |
getBw(Writer writer,
int size) |
static InputStream |
getIsFromURL(String path) |
static InputStream |
getIsFromURL(URL url,
String path,
boolean tryFind,
int dataSize,
long timeout) |
static InputStream |
getIsFromURL(URL url,
String path,
long timeout) |
static JarInputStream |
getJis(File file) |
static JarInputStream |
getJis(File file,
boolean verify) |
static JarInputStream |
getJis(InputStream is) |
static JarInputStream |
getJis(InputStream is,
boolean verify) |
static JarInputStream |
getJis(String path) |
static JarInputStream |
getJis(String path,
boolean verify) |
static JarOutputStream |
getJos(File file) |
static JarOutputStream |
getJos(File file,
boolean append,
Manifest man) |
static JarOutputStream |
getJos(OutputStream os) |
static JarOutputStream |
getJos(OutputStream os,
Manifest man) |
static JarOutputStream |
getJos(String path) |
static JarOutputStream |
getJos(String path,
boolean append,
Manifest man) |
static ZipInputStream |
getZis(File file) |
static ZipInputStream |
getZis(File file,
Charset charset) |
static ZipInputStream |
getZis(InputStream is) |
static ZipInputStream |
getZis(InputStream is,
Charset charset) |
static ZipInputStream |
getZis(String path) |
static ZipInputStream |
getZis(String path,
Charset charset) |
static ZipOutputStream |
getZos(File file) |
static ZipOutputStream |
getZos(File file,
boolean append,
Charset charset) |
static ZipOutputStream |
getZos(OutputStream os) |
static ZipOutputStream |
getZos(OutputStream os,
Charset charset) |
static ZipOutputStream |
getZos(String path) |
static ZipOutputStream |
getZos(String path,
boolean append,
Charset charset) |
static <BR extends BufferedReader> |
read(BR br) |
static <BR extends BufferedReader,BW extends BufferedWriter> |
read(BR br,
BW bw) |
static <BR extends BufferedReader,BW extends BufferedWriter> |
read(BR br,
BW bw,
BiConsumer<String,BW> update) |
static <BR extends BufferedReader,BW extends BufferedWriter> |
read(BR br,
BW bw,
BiConsumer<String,BW> update,
BiConsumer<BR,BW> f) |
static <BR extends BufferedReader,BW extends BufferedWriter> |
read(BR br,
BW bw,
Function<String,String> update,
BiConsumer<BR,BW> f) |
static <BR extends BufferedReader> |
read(BR br,
Collection<String> strings) |
static <BR extends BufferedReader> |
read(BR br,
Collection<String> strings,
Consumer<BR> f) |
static <BR extends BufferedReader> |
read(BR br,
Consumer<String> consumer) |
static <BR extends BufferedReader> |
read(BR br,
Consumer<String> consumer,
Consumer<BR> f) |
static <I extends InputStream> |
read(I i) |
static <I extends InputStream> |
read(I i,
BiConsumer<byte[],Integer> consumer) |
static <I extends InputStream> |
read(I i,
BiConsumer<byte[],Integer> consumer,
int dataSize,
Consumer<I> f) |
static <I extends InputStream> |
read(I i,
byte[] bytes,
int dataOffset) |
static <I extends InputStream> |
read(I i,
Collection<byte[]> bytes) |
static <I extends InputStream> |
read(I i,
int dataSize,
byte[] data,
int dataOffset,
Consumer<I> f) |
static <I extends InputStream> |
read(I i,
int dataSize,
Collection<byte[]> bytes,
Consumer<I> f) |
static <I extends InputStream> |
read(I i,
int dataSize,
Consumer<I> f) |
static <I extends InputStream> |
read(I i,
long offset,
long size,
BiConsumer<byte[],Integer> consumer,
int dataSize,
Consumer<I> f) |
static <I extends InputStream> |
read(I i,
long offset,
long size,
int dataSize,
byte[] data,
int dataOffset,
Consumer<I> f) |
static <I extends InputStream> |
read(I i,
long offset,
long size,
int dataSize,
Collection<byte[]> bytes,
Consumer<I> f) |
static <I extends InputStream> |
read(I i,
long offset,
long size,
int dataSize,
Consumer<I> f) |
static <I extends InputStream,O extends OutputStream> |
read(I i,
long offset,
long size,
O o,
int dataSize,
Consumer<byte[]> update,
BiConsumer<I,O> f) |
static <I extends InputStream,O extends OutputStream> |
read(I i,
O o) |
static <I extends InputStream,O extends OutputStream> |
read(I i,
O o,
int dataSize,
Consumer<byte[]> update,
BiConsumer<I,O> f) |
static <R extends Reader> |
read(R r,
BiConsumer<char[],Integer> consumer) |
static <R extends Reader> |
read(R r,
BiConsumer<char[],Integer> consumer,
int dataSize,
Consumer<R> f) |
static <R extends Reader,W extends Writer> |
read(R reader,
W writer) |
static <R extends Reader,W extends Writer> |
read(R r,
W w,
int dataSize,
Consumer<char[]> update,
BiConsumer<R,W> f) |
static <BW extends BufferedWriter> |
write(BW bw,
char[] chars) |
static <BW extends BufferedWriter> |
write(BW bw,
char[] chars,
Consumer<BW> f) |
static <BW extends BufferedWriter> |
write(BW bw,
Collection<String> strings) |
static <BW extends BufferedWriter> |
write(BW bw,
Collection<String> strings,
Consumer<BW> f) |
static <O extends OutputStream> |
write(O o,
byte[] bytes) |
static <O extends OutputStream> |
write(O o,
byte[] bytes,
Consumer<O> f) |
static <O extends OutputStream> |
write(O o,
Collection<byte[]> bytes) |
static <O extends OutputStream> |
write(O o,
Collection<byte[]> bytes,
Consumer<O> f) |
static <W extends Writer> |
write(W w,
char[] chars) |
static <W extends Writer> |
write(W w,
char[] chars,
Consumer<W> f) |
static <W extends Writer> |
write(W w,
Collection<String> strings) |
static <W extends Writer> |
write(W w,
Collection<String> strings,
Consumer<W> f) |
public static final int DEFAULT_BUFFER_SIZE
public static final int DEFAULT_DATA_SIZE
public static InputStream getIsFromURL(URL url, String path, boolean tryFind, int dataSize, long timeout)
public static InputStream getIsFromURL(URL url, String path, long timeout)
public static InputStream getIsFromURL(String path)
public static void flush(Flushable flushable)
public static void close(AutoCloseable autoCloseable)
public static void close(AutoCloseable a1, AutoCloseable a2)
public static void close(AutoCloseable a1, AutoCloseable a2, AutoCloseable a3)
public static BufferedInputStream getBis(InputStream is, int size)
public static BufferedInputStream getBis(InputStream is)
public static BufferedInputStream getBis(File file, int size)
public static BufferedInputStream getBis(File file)
public static BufferedInputStream getBis(String path, int size)
public static BufferedInputStream getBis(String path)
public static BufferedOutputStream getBos(OutputStream os, int size)
public static BufferedOutputStream getBos(OutputStream os)
public static BufferedOutputStream getBos(File file, boolean append, int size)
public static BufferedOutputStream getBos(File file)
public static BufferedOutputStream getBos(String path, boolean append, int size)
public static BufferedOutputStream getBos(String path)
public static BufferedReader getBr(InputStream is, Charset charset, int size)
public static BufferedReader getBr(InputStream is, Charset charset)
public static BufferedReader getBr(InputStream is)
public static BufferedReader getBr(Reader reader, int size)
public static BufferedReader getBr(Reader reader)
public static BufferedReader getBr(File file, int size)
public static BufferedReader getBr(File file)
public static BufferedReader getBr(String path, int size)
public static BufferedReader getBr(String path)
public static BufferedWriter getBw(OutputStream os, Charset charset, int size)
public static BufferedWriter getBw(OutputStream os, Charset charset)
public static BufferedWriter getBw(OutputStream os)
public static BufferedWriter getBw(Writer writer, int size)
public static BufferedWriter getBw(Writer writer)
public static BufferedWriter getBw(File file, boolean append, int size)
public static BufferedWriter getBw(File file)
public static BufferedWriter getBw(String path, boolean append, int size)
public static BufferedWriter getBw(String path)
public static ZipInputStream getZis(InputStream is, Charset charset)
public static ZipInputStream getZis(InputStream is)
public static ZipInputStream getZis(File file, Charset charset)
public static ZipInputStream getZis(File file)
public static ZipInputStream getZis(String path, Charset charset)
public static ZipInputStream getZis(String path)
public static ZipOutputStream getZos(OutputStream os, Charset charset)
public static ZipOutputStream getZos(OutputStream os)
public static ZipOutputStream getZos(File file, boolean append, Charset charset)
public static ZipOutputStream getZos(File file)
public static ZipOutputStream getZos(String path, boolean append, Charset charset)
public static ZipOutputStream getZos(String path)
public static JarInputStream getJis(InputStream is, boolean verify)
public static JarInputStream getJis(InputStream is)
public static JarInputStream getJis(File file, boolean verify)
public static JarInputStream getJis(File file)
public static JarInputStream getJis(String path, boolean verify)
public static JarInputStream getJis(String path)
public static JarOutputStream getJos(OutputStream os, Manifest man)
public static JarOutputStream getJos(OutputStream os)
public static JarOutputStream getJos(File file, boolean append, Manifest man)
public static JarOutputStream getJos(File file)
public static JarOutputStream getJos(String path, boolean append, Manifest man)
public static JarOutputStream getJos(String path)
public static <I extends InputStream,O extends OutputStream> long read(I i, long offset, long size, O o, int dataSize, Consumer<byte[]> update, BiConsumer<I,O> f)
public static <I extends InputStream,O extends OutputStream> long read(I i, O o, int dataSize, Consumer<byte[]> update, BiConsumer<I,O> f)
public static <I extends InputStream,O extends OutputStream> long read(I i, O o)
public static <R extends Reader,W extends Writer> void read(R r, W w, int dataSize, Consumer<char[]> update, BiConsumer<R,W> f)
public static <BR extends BufferedReader,BW extends BufferedWriter> void read(BR br, BW bw, Function<String,String> update, BiConsumer<BR,BW> f)
public static <BR extends BufferedReader,BW extends BufferedWriter> void read(BR br, BW bw)
public static <BR extends BufferedReader,BW extends BufferedWriter> void read(BR br, BW bw, BiConsumer<String,BW> update, BiConsumer<BR,BW> f)
public static <BR extends BufferedReader,BW extends BufferedWriter> void read(BR br, BW bw, BiConsumer<String,BW> update)
public static <I extends InputStream> long read(I i, long offset, long size, BiConsumer<byte[],Integer> consumer, int dataSize, Consumer<I> f)
public static <I extends InputStream> void read(I i, BiConsumer<byte[],Integer> consumer, int dataSize, Consumer<I> f)
public static <I extends InputStream> void read(I i, BiConsumer<byte[],Integer> consumer)
public static <R extends Reader> void read(R r, BiConsumer<char[],Integer> consumer, int dataSize, Consumer<R> f)
public static <R extends Reader> void read(R r, BiConsumer<char[],Integer> consumer)
public static <BR extends BufferedReader> void read(BR br, Consumer<String> consumer, Consumer<BR> f)
public static <BR extends BufferedReader> void read(BR br, Consumer<String> consumer)
public static <I extends InputStream> long read(I i, long offset, long size, int dataSize, Collection<byte[]> bytes, Consumer<I> f)
public static <I extends InputStream> void read(I i, int dataSize, Collection<byte[]> bytes, Consumer<I> f)
public static <I extends InputStream> void read(I i, Collection<byte[]> bytes)
public static <I extends InputStream> long read(I i, long offset, long size, int dataSize, byte[] data, int dataOffset, Consumer<I> f)
public static <I extends InputStream> long read(I i, int dataSize, byte[] data, int dataOffset, Consumer<I> f)
public static <I extends InputStream> long read(I i, byte[] bytes, int dataOffset)
public static <I extends InputStream> byte[] read(I i, long offset, long size, int dataSize, Consumer<I> f)
public static <I extends InputStream> byte[] read(I i, int dataSize, Consumer<I> f)
public static <I extends InputStream> byte[] read(I i)
public static <BR extends BufferedReader> void read(BR br, Collection<String> strings, Consumer<BR> f)
public static <BR extends BufferedReader> void read(BR br, Collection<String> strings)
public static <BR extends BufferedReader> String read(BR br)
public static <O extends OutputStream> void write(O o, byte[] bytes, Consumer<O> f)
public static <O extends OutputStream> void write(O o, byte[] bytes)
public static <O extends OutputStream> void write(O o, Collection<byte[]> bytes, Consumer<O> f)
public static <O extends OutputStream> void write(O o, Collection<byte[]> bytes)
public static <W extends Writer> void write(W w, char[] chars)
public static <W extends Writer> void write(W w, Collection<String> strings, Consumer<W> f)
public static <W extends Writer> void write(W w, Collection<String> strings)
public static <BW extends BufferedWriter> void write(BW bw, char[] chars, Consumer<BW> f)
public static <BW extends BufferedWriter> void write(BW bw, char[] chars)
public static <BW extends BufferedWriter> void write(BW bw, Collection<String> strings, Consumer<BW> f)
public static <BW extends BufferedWriter> void write(BW bw, Collection<String> strings)
Copyright © 2022. All rights reserved.