/** * Generate source. * * @param is the is * @param sourceOutputPath the source output path * @throws IOException Signals that an I/O exception has occurred. */ public static void generateSource(InputStream is, File sourceOutputPath) throws IOException { ProtoFile protoFile = ProtoSchemaParser.parseUtf8(DEFAULT_FILE_NAME, is); List<CodeDependent> cds = new ArrayList<CodeDependent>(); doCreate(protoFile, true, false, null, true, sourceOutputPath, cds, new HashMap<String, String>(), false); }
/** * Generate source. * * @param reader the reader * @param sourceOutputPath the source output path * @throws IOException Signals that an I/O exception has occurred. */ public static void generateSource(Reader reader, File sourceOutputPath) throws IOException { ProtoFile protoFile = ProtoSchemaParser.parse(DEFAULT_FILE_NAME, reader); List<CodeDependent> cds = new ArrayList<CodeDependent>(); doCreate(protoFile, true, false, null, true, sourceOutputPath, cds, new HashMap<String, String>(), false); }
/** * Generate source. * * @param data the data * @param sourceOutputPath the source output path */ public static void generateSource(String data, File sourceOutputPath) { ProtoFile protoFile = ProtoSchemaParser.parse(DEFAULT_FILE_NAME, data); List<CodeDependent> cds = new ArrayList<CodeDependent>(); try { doCreate(protoFile, true, false, null, true, sourceOutputPath, cds, new HashMap<String, String>(), false); } catch (IOException e) { throw new RuntimeException(e.getMessage(), e); } }
/** * Creates the. * * @param is the is * @param debug the debug * @param path the path * @param isUniName the is uni name * @return the map * @throws IOException Signals that an I/O exception has occurred. */ public static Map<String, IDLProxyObject> create(InputStream is, boolean debug, File path, boolean isUniName) throws IOException { ProtoFile protoFile = ProtoSchemaParser.parseUtf8(DEFAULT_FILE_NAME, is); List<CodeDependent> cds = new ArrayList<CodeDependent>(); return doCreate(protoFile, true, debug, path, false, null, cds, new HashMap<String, String>(), isUniName); }
/** * Creates the. * * @param reader the reader * @param debug the debug * @param path the path * @param isUniName the is uni name * @return the map * @throws IOException Signals that an I/O exception has occurred. */ public static Map<String, IDLProxyObject> create(Reader reader, boolean debug, File path, boolean isUniName) throws IOException { ProtoFile protoFile = ProtoSchemaParser.parse(DEFAULT_FILE_NAME, reader); List<CodeDependent> cds = new ArrayList<CodeDependent>(); return doCreate(protoFile, true, debug, path, false, null, cds, new HashMap<String, String>(), isUniName); }
/** * Creates the single. * * @param data the data * @param debug the debug * @param path the path * @param isUniName the is uni name * @return the IDL proxy object */ public static IDLProxyObject createSingle(String data, boolean debug, File path, boolean isUniName) { ProtoFile protoFile = ProtoSchemaParser.parse(DEFAULT_FILE_NAME, data); List<CodeDependent> cds = new ArrayList<CodeDependent>(); Map<String, IDLProxyObject> map; try { map = doCreate(protoFile, false, debug, path, false, null, cds, new HashMap<String, String>(), isUniName); return map.entrySet().iterator().next().getValue(); } catch (IOException e) { throw new RuntimeException(e.getMessage(), e); } }
/** * Creates the. * * @param data the data * @param debug the debug * @param path the path * @param isUniName the is uni name * @return the map */ public static Map<String, IDLProxyObject> create(String data, boolean debug, File path, boolean isUniName) { ProtoFile protoFile = ProtoSchemaParser.parse(DEFAULT_FILE_NAME, data); List<CodeDependent> cds = new ArrayList<CodeDependent>(); try { return doCreate(protoFile, true, debug, path, false, null, cds, new HashMap<String, String>(), isUniName); } catch (Exception e) { throw new RuntimeException(e.getMessage(), e); } }
/** * Creates the single {@link IDLProxyObject}. * * @param is the is * @param debug the debug * @param path the path * @param isUniName the is uni name * @return the IDL proxy object * @throws IOException Signals that an I/O exception has occurred. */ public static IDLProxyObject createSingle(InputStream is, boolean debug, File path, boolean isUniName) throws IOException { ProtoFile protoFile = ProtoSchemaParser.parseUtf8(DEFAULT_FILE_NAME, is); List<CodeDependent> cds = new ArrayList<CodeDependent>(); Map<String, IDLProxyObject> map = doCreate(protoFile, false, debug, path, false, null, cds, new HashMap<String, String>(), isUniName); return map.entrySet().iterator().next().getValue(); }
/** * Creates the single. * * @param reader the reader * @param debug the debug * @param path the path * @param isUniName the is uni name * @return the IDL proxy object * @throws IOException Signals that an I/O exception has occurred. */ public static IDLProxyObject createSingle(Reader reader, boolean debug, File path, boolean isUniName) throws IOException { ProtoFile protoFile = ProtoSchemaParser.parse(DEFAULT_FILE_NAME, reader); List<CodeDependent> cds = new ArrayList<CodeDependent>(); Map<String, IDLProxyObject> map = doCreate(protoFile, false, debug, path, false, null, cds, new HashMap<String, String>(), isUniName); return map.entrySet().iterator().next().getValue(); }