public class GramarHelper extends Object
Constructor and Description |
---|
GramarHelper() |
Modifier and Type | Method and Description |
---|---|
static InputStream |
asStream(Reader reader) |
static String |
asString(InputStream is) |
static String |
asString(Reader reader) |
static void |
copy(InputStream is,
OutputStream os) |
static void |
copy(Reader reader,
OutputStream os) |
static void |
copy(Reader reader,
Writer writer) |
static Reader |
fromResource(String path) |
static byte[] |
getBytes(InputStream is) |
static String[] |
pathSegments(String path) |
public static void copy(InputStream is, OutputStream os) throws IOException
IOException
public static InputStream asStream(Reader reader) throws IOException
IOException
public static String asString(InputStream is) throws IOException
IOException
public static void copy(Reader reader, Writer writer) throws IOException
IOException
public static String asString(Reader reader) throws IOException
IOException
public static void copy(Reader reader, OutputStream os) throws IOException
IOException
public static Reader fromResource(String path) throws IOException
IOException
public static byte[] getBytes(InputStream is) throws IOException
is
- IOException
Copyright © 2015. All rights reserved.