de.greenrobot.daogenerator
Class DaoUtil
java.lang.Object
de.greenrobot.daogenerator.DaoUtil
-
public class DaoUtil
- extends java.lang.Object
-
Internal API
Method Summary |
static int |
copyAllBytes(java.io.InputStream in, java.io.OutputStream out)
Copies all available data from in to out without closing any stream. |
static java.lang.String |
dbName(java.lang.String javaName)
|
static byte[] |
readAllBytes(java.io.File file)
|
static byte[] |
readAllBytes(java.io.InputStream in)
|
static byte[] |
readAllBytes(java.lang.String filename)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DaoUtil
public DaoUtil()
dbName
public static java.lang.String dbName(java.lang.String javaName)
-
readAllBytes
public static byte[] readAllBytes(java.io.InputStream in)
throws java.io.IOException
-
- Throws:
java.io.IOException
readAllBytes
public static byte[] readAllBytes(java.io.File file)
throws java.io.IOException
-
- Throws:
java.io.IOException
readAllBytes
public static byte[] readAllBytes(java.lang.String filename)
throws java.io.IOException
-
- Throws:
java.io.IOException
copyAllBytes
public static int copyAllBytes(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
-
Copies all available data from in to out without closing any stream.
-
- Returns:
- number of bytes copied
- Throws:
java.io.IOException
Copyright © 2011-2012 greenrobot.de. All Rights Reserved.