public class OutputUtil
extends java.lang.Object
| Constructor and Description |
|---|
OutputUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getServiceBaseName(java.lang.String name)
Returns the service base name as derived from the full service name, or null if derivation is
not successful.
|
static void |
writeProtoBinaryToFile(java.io.File outputFile,
com.google.protobuf.Message proto)
Writes a proto to a file in binary format.
|
static void |
writeProtoTextToFile(java.io.File outputFile,
com.google.protobuf.Message proto)
Writes a proto to a file in text format.
|
static void |
writeToFile(java.io.File outputFile,
java.lang.String content)
Writes string content to a file.
|
public static void writeToFile(java.io.File outputFile,
java.lang.String content)
throws java.io.IOException
java.io.IOExceptionpublic static void writeProtoTextToFile(java.io.File outputFile,
com.google.protobuf.Message proto)
throws java.io.IOException
java.io.IOExceptionpublic static void writeProtoBinaryToFile(java.io.File outputFile,
com.google.protobuf.Message proto)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getServiceBaseName(java.lang.String name)