public class ProtobufIDLProxy extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_FILE_NAME
default proto file name.
|
| 构造器和说明 |
|---|
ProtobufIDLProxy() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static void |
checkDirectory(boolean generateSouceOnly,
File sourceOutputDir)
Check directory.
|
static Map<String,IDLProxyObject> |
create(File file)
Creates the.
|
static Map<String,IDLProxyObject> |
create(File file,
boolean debug)
Creates the.
|
static Map<String,IDLProxyObject> |
create(File file,
boolean debug,
boolean isUniName)
Creates the.
|
static Map<String,IDLProxyObject> |
create(File file,
boolean debug,
File path)
Creates the.
|
static Map<String,IDLProxyObject> |
create(File file,
boolean debug,
File path,
boolean isUniName)
Creates the.
|
static Map<String,IDLProxyObject> |
create(File file,
boolean debug,
File path,
List<com.baidu.bjf.remoting.protobuf.ProtobufIDLProxy.CodeDependent> cds,
Set<String> compiledClass)
Creates the.
|
static Map<String,IDLProxyObject> |
create(File file,
boolean debug,
File path,
List<com.baidu.bjf.remoting.protobuf.ProtobufIDLProxy.CodeDependent> cds,
Set<String> compiledClass,
boolean isUniName)
Creates the.
|
static Map<String,IDLProxyObject> |
create(InputStream is)
Creates the.
|
static Map<String,IDLProxyObject> |
create(InputStream is,
boolean debug)
Creates the.
|
static Map<String,IDLProxyObject> |
create(InputStream is,
boolean debug,
boolean isUniName)
Creates the.
|
static Map<String,IDLProxyObject> |
create(InputStream is,
boolean debug,
File path)
Creates the.
|
static Map<String,IDLProxyObject> |
create(InputStream is,
boolean debug,
File path,
boolean isUniName)
Creates the.
|
static Map<String,IDLProxyObject> |
create(Reader reader)
Creates the.
|
static Map<String,IDLProxyObject> |
create(Reader reader,
boolean debug)
Creates the.
|
static Map<String,IDLProxyObject> |
create(Reader reader,
boolean debug,
boolean isUniName)
Creates the.
|
static Map<String,IDLProxyObject> |
create(Reader reader,
boolean debug,
File path)
Creates the.
|
static Map<String,IDLProxyObject> |
create(Reader reader,
boolean debug,
File path,
boolean isUniName)
Creates the.
|
static Map<String,IDLProxyObject> |
create(String data)
Creates the.
|
static Map<String,IDLProxyObject> |
create(String data,
boolean debug)
Creates the.
|
static Map<String,IDLProxyObject> |
create(String data,
boolean debug,
boolean isUniName)
Creates the.
|
static Map<String,IDLProxyObject> |
create(String data,
boolean debug,
File path)
Creates the.
|
static Map<String,IDLProxyObject> |
create(String data,
boolean debug,
File path,
boolean isUniName)
Creates the.
|
static IDLProxyObject |
createSingle(InputStream is)
Creates the single.
|
static IDLProxyObject |
createSingle(InputStream is,
boolean debug)
Creates the single.
|
static IDLProxyObject |
createSingle(InputStream is,
boolean debug,
boolean isUniName)
Creates the single.
|
static IDLProxyObject |
createSingle(InputStream is,
boolean debug,
File path)
Creates the single.
|
static IDLProxyObject |
createSingle(InputStream is,
boolean debug,
File path,
boolean isUniName)
Creates the single.
|
static IDLProxyObject |
createSingle(Reader reader)
Creates the single.
|
static IDLProxyObject |
createSingle(Reader reader,
boolean debug)
Creates the single.
|
static IDLProxyObject |
createSingle(Reader reader,
boolean debug,
boolean isUniName)
Creates the single.
|
static IDLProxyObject |
createSingle(Reader reader,
boolean debug,
File path)
Creates the single.
|
static IDLProxyObject |
createSingle(Reader reader,
boolean debug,
File path,
boolean isUniName)
Creates the single.
|
static IDLProxyObject |
createSingle(String data)
Creates the single.
|
static IDLProxyObject |
createSingle(String data,
boolean debug)
Creates the single.
|
static IDLProxyObject |
createSingle(String data,
boolean debug,
boolean isUniName)
Creates the single.
|
static IDLProxyObject |
createSingle(String data,
boolean debug,
File path)
Creates the single.
|
static IDLProxyObject |
createSingle(String data,
boolean debug,
File path,
boolean isUniName)
Creates the single.
|
static void |
generateSource(File file,
File sourceOutputPath)
Generate source.
|
static void |
generateSource(File file,
File sourceOutputPath,
List<com.baidu.bjf.remoting.protobuf.ProtobufIDLProxy.CodeDependent> cds,
Set<String> compiledClass)
Generate source.
|
static void |
generateSource(InputStream is,
File sourceOutputPath)
Generate source.
|
static void |
generateSource(Reader reader,
File sourceOutputPath)
Generate source.
|
static void |
generateSource(String data,
File sourceOutputPath)
Generate source.
|
static void |
setFormatJavaField(boolean needFormatJavaField)
Sets the Constant formatJavaField.
|
public static void setFormatJavaField(boolean needFormatJavaField)
needFormatJavaField - the new Constant formatJavaFieldprotected static void checkDirectory(boolean generateSouceOnly,
File sourceOutputDir)
generateSouceOnly - the generate souce onlysourceOutputDir - the source output dirpublic static Map<String,IDLProxyObject> create(File file) throws IOException
file - the fileIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(File file, boolean debug, boolean isUniName) throws IOException
file - the filedebug - the debugisUniName - the is uni nameIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(File file, boolean debug) throws IOException
file - the filedebug - the debugIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(File file, boolean debug, File path) throws IOException
file - the filedebug - the debugpath - the pathIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(File file, boolean debug, File path, boolean isUniName) throws IOException
file - the filedebug - the debugpath - the pathisUniName - the is uni nameIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(File file, boolean debug, File path, List<com.baidu.bjf.remoting.protobuf.ProtobufIDLProxy.CodeDependent> cds, Set<String> compiledClass) throws IOException
file - the filedebug - the debugpath - the pathcds - the cdscompiledClass - the compiled classIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(File file, boolean debug, File path, List<com.baidu.bjf.remoting.protobuf.ProtobufIDLProxy.CodeDependent> cds, Set<String> compiledClass, boolean isUniName) throws IOException
file - the filedebug - the debugpath - the pathcds - the cdscompiledClass - the compiled classisUniName - the is uni nameIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(InputStream is) throws IOException
is - the isIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(InputStream is, boolean debug) throws IOException
is - the isdebug - the debugIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(InputStream is, boolean debug, boolean isUniName) throws IOException
is - the isdebug - the debugisUniName - the is uni nameIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(InputStream is, boolean debug, File path) throws IOException
is - the isdebug - the debugpath - the pathIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(InputStream is, boolean debug, File path, boolean isUniName) throws IOException
is - the isdebug - the debugpath - the pathisUniName - the is uni nameIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(Reader reader) throws IOException
reader - the readerIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(Reader reader, boolean debug) throws IOException
reader - the readerdebug - the debugIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(Reader reader, boolean debug, boolean isUniName) throws IOException
reader - the readerdebug - the debugisUniName - the is uni nameIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(Reader reader, boolean debug, File path) throws IOException
reader - the readerdebug - the debugpath - the pathIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(Reader reader, boolean debug, File path, boolean isUniName) throws IOException
reader - the readerdebug - the debugpath - the pathisUniName - the is uni nameIOException - Signals that an I/O exception has occurred.public static Map<String,IDLProxyObject> create(String data)
data - the datapublic static Map<String,IDLProxyObject> create(String data, boolean debug)
data - the datadebug - the debugpublic static Map<String,IDLProxyObject> create(String data, boolean debug, boolean isUniName)
data - the datadebug - the debugisUniName - the is uni namepublic static Map<String,IDLProxyObject> create(String data, boolean debug, File path)
data - the datadebug - the debugpath - the pathpublic static Map<String,IDLProxyObject> create(String data, boolean debug, File path, boolean isUniName)
data - the datadebug - the debugpath - the pathisUniName - the is uni namepublic static IDLProxyObject createSingle(InputStream is) throws IOException
is - the isIOException - Signals that an I/O exception has occurred.public static IDLProxyObject createSingle(InputStream is, boolean debug) throws IOException
is - the isdebug - the debugIOException - Signals that an I/O exception has occurred.public static IDLProxyObject createSingle(InputStream is, boolean debug, boolean isUniName) throws IOException
is - the isdebug - the debugisUniName - the is uni nameIOException - Signals that an I/O exception has occurred.public static IDLProxyObject createSingle(InputStream is, boolean debug, File path) throws IOException
is - the isdebug - the debugpath - the pathIOException - Signals that an I/O exception has occurred.public static IDLProxyObject createSingle(InputStream is, boolean debug, File path, boolean isUniName) throws IOException
is - the isdebug - the debugpath - the pathisUniName - the is uni nameIOException - Signals that an I/O exception has occurred.public static IDLProxyObject createSingle(Reader reader) throws IOException
reader - the readerIOException - Signals that an I/O exception has occurred.public static IDLProxyObject createSingle(Reader reader, boolean debug) throws IOException
reader - the readerdebug - the debugIOException - Signals that an I/O exception has occurred.public static IDLProxyObject createSingle(Reader reader, boolean debug, boolean isUniName) throws IOException
reader - the readerdebug - the debugisUniName - the is uni nameIOException - Signals that an I/O exception has occurred.public static IDLProxyObject createSingle(Reader reader, boolean debug, File path) throws IOException
reader - the readerdebug - the debugpath - the pathIOException - Signals that an I/O exception has occurred.public static IDLProxyObject createSingle(Reader reader, boolean debug, File path, boolean isUniName) throws IOException
reader - the readerdebug - the debugpath - the pathisUniName - the is uni nameIOException - Signals that an I/O exception has occurred.public static IDLProxyObject createSingle(String data)
data - the datapublic static IDLProxyObject createSingle(String data, boolean debug)
data - the datadebug - the debugpublic static IDLProxyObject createSingle(String data, boolean debug, boolean isUniName)
data - the datadebug - the debugisUniName - set true will create a unique different class namepublic static IDLProxyObject createSingle(String data, boolean debug, File path)
data - the datadebug - the debugpath - the pathpublic static IDLProxyObject createSingle(String data, boolean debug, File path, boolean isUniName)
data - the datadebug - the debugpath - the pathisUniName - the is uni namepublic static void generateSource(File file, File sourceOutputPath) throws IOException
file - the filesourceOutputPath - the source output pathIOException - Signals that an I/O exception has occurred.public static void generateSource(File file, File sourceOutputPath, List<com.baidu.bjf.remoting.protobuf.ProtobufIDLProxy.CodeDependent> cds, Set<String> compiledClass) throws IOException
file - the filesourceOutputPath - the source output pathcds - the cdscompiledClass - the compiled classIOException - Signals that an I/O exception has occurred.public static void generateSource(InputStream is, File sourceOutputPath) throws IOException
is - the issourceOutputPath - the source output pathIOException - Signals that an I/O exception has occurred.public static void generateSource(Reader reader, File sourceOutputPath) throws IOException
reader - the readersourceOutputPath - the source output pathIOException - Signals that an I/O exception has occurred.Copyright © 2022 Baidu, Inc.. All rights reserved.