com.indexdata.utils
public class TextUtils extends Object
Constructor and Description |
---|
TextUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copyStream(InputStream is,
OutputStream os) |
static void |
copyStreamWithReplace(InputStream is,
OutputStream os,
String[] tokens) |
static String |
joinPath(char sep,
String... comps) |
static String |
joinPath(String... comps) |
static Map<String,String> |
parseQueryString(String queryString) |
static String |
readStream(InputStream stream) |
static String |
readStream(InputStream stream,
String newLineChar) |
static String |
serializeParams(Map<String,String> recordParams) |
public static void copyStream(InputStream is, OutputStream os) throws IOException
IOException
public static void copyStreamWithReplace(InputStream is, OutputStream os, String[] tokens) throws IOException
IOException
public static String readStream(InputStream stream) throws IOException
IOException
public static String readStream(InputStream stream, String newLineChar) throws IOException
IOException
public static Map<String,String> parseQueryString(String queryString) throws UnsupportedEncodingException
UnsupportedEncodingException
public static String serializeParams(Map<String,String> recordParams) throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright © 2014. All rights reserved.