com.googlecode.jpattern.orm.util
Class OrmUtil

java.lang.Object
  extended by com.googlecode.jpattern.orm.util.OrmUtil

public class OrmUtil
extends Object

Author:
Francesco Cina 06/giu/2011

Field Summary
static String UTF8
           
 
Constructor Summary
OrmUtil()
           
 
Method Summary
static String convertReaderToString(Reader reader, boolean closeReader)
           
static String convertStreamToString(InputStream is, String encoding, boolean closeStream)
           
static Reader convertStringToReader(String text)
           
static InputStream convertStringToStream(String text, String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTF8

public static String UTF8
Constructor Detail

OrmUtil

public OrmUtil()
Method Detail

convertStringToReader

public static Reader convertStringToReader(String text)
                                    throws IOException
Throws:
IOException

convertReaderToString

public static String convertReaderToString(Reader reader,
                                           boolean closeReader)
                                    throws IOException
Throws:
IOException

convertStringToStream

public static InputStream convertStringToStream(String text,
                                                String encoding)
                                         throws IOException
Throws:
IOException

convertStreamToString

public static String convertStreamToString(InputStream is,
                                           String encoding,
                                           boolean closeStream)
                                    throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.