|
Produced by Siminov Software Solution LLP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsiminov.orm.utils.Utils
public class Utils
Exposes utility methods which can be used by both SIMINOV/Application.
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static java.lang.Long |
generateUniqueId()
Get generated unique id. |
static boolean |
hasCoverage()
Check whether device have network coverage or not. |
static boolean |
isEmulator()
Check whether application is running on emulator or not. |
static java.io.InputStream |
toInputStream(byte[] bytes)
Get input stream from string. |
static java.io.InputStream |
toInputStream(java.lang.String string)
Get input stream from string. |
static java.lang.String |
toString(java.io.InputStream inputStream)
Get string from input stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static java.lang.String toString(java.io.InputStream inputStream) throws SiminovException
inputStream
- Input Stream.
SiminovException
- If any exception occur while getting string from input stream.public static java.io.InputStream toInputStream(java.lang.String string) throws SiminovException
string
- String.
SiminovException
- If any exception occur while getting input stream from string.public static java.io.InputStream toInputStream(byte[] bytes) throws SiminovException
bytes
- Byte Array.
SiminovException
- If any exception occur while getting input stream from byte array.public static java.lang.Long generateUniqueId()
public static boolean isEmulator()
public static boolean hasCoverage()
|
Apache License 2.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |