public class SerializationUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
KIB |
| Constructor and Description |
|---|
SerializationUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fillIdToEObjectMap(org.eclipse.emf.ecore.EObject eObject,
List<org.eclipse.emf.ecore.EObject> map) |
static void |
fillIdToEObjectMap(org.eclipse.emf.ecore.resource.Resource resource,
List<org.eclipse.emf.ecore.EObject> map) |
static byte[] |
getCompleteContent(InputStream inputStream) |
static String |
getCompleteContent(String encoding,
InputStream inputStream) |
static String |
getCompleteContent(XtextResource xr) |
static long |
milliDiff(long startLoad,
long doneLoad) |
static int |
readInt(DataInputStream in,
boolean optimizePositive) |
static String |
readString(DataInputStream in) |
static String[] |
readStringArray(DataInputStream in) |
static SyntaxErrorMessage |
readSyntaxErrorMessage(DataInputStream in,
DeserializationConversionContext context) |
static void |
tryClose(Closeable stream,
org.apache.log4j.Logger logger) |
static int |
writeInt(DataOutputStream out,
int value,
boolean optimizePositive) |
static void |
writeString(DataOutputStream out,
String s) |
static void |
writeStringArray(DataOutputStream out,
String[] ss) |
static void |
writeSyntaxErrorMessage(DataOutputStream out,
SerializationConversionContext scc,
SyntaxErrorMessage syntaxErrorMessage) |
public static final int KIB
public static void fillIdToEObjectMap(org.eclipse.emf.ecore.resource.Resource resource,
List<org.eclipse.emf.ecore.EObject> map)
public static void fillIdToEObjectMap(org.eclipse.emf.ecore.EObject eObject,
List<org.eclipse.emf.ecore.EObject> map)
public static long milliDiff(long startLoad,
long doneLoad)
public static String getCompleteContent(XtextResource xr) throws IOException, UnsupportedEncodingException
public static String getCompleteContent(String encoding, InputStream inputStream) throws UnsupportedEncodingException, IOException
public static byte[] getCompleteContent(InputStream inputStream) throws IOException
IOExceptionpublic static void writeSyntaxErrorMessage(DataOutputStream out, SerializationConversionContext scc, SyntaxErrorMessage syntaxErrorMessage) throws IOException
IOExceptionpublic static SyntaxErrorMessage readSyntaxErrorMessage(DataInputStream in, DeserializationConversionContext context) throws IOException
IOExceptionpublic static int writeInt(DataOutputStream out, int value, boolean optimizePositive) throws IOException
IOExceptionpublic static int readInt(DataInputStream in, boolean optimizePositive) throws IOException
IOExceptionpublic static final void writeString(DataOutputStream out, String s) throws IOException
IOExceptionpublic static final String readString(DataInputStream in) throws IOException
IOExceptionpublic static void writeStringArray(DataOutputStream out, String[] ss) throws IOException
IOExceptionpublic static String[] readStringArray(DataInputStream in) throws IOException
IOExceptionpublic static void tryClose(Closeable stream, org.apache.log4j.Logger logger) throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.