public void getDetailInfo(Formatter f) { super.getDetailInfo(f); f.format("DDS = %n"); ByteArrayOutputStream buffOS = new ByteArrayOutputStream(8000); dds.print(buffOS); f.format("%s%n", new String(buffOS.toByteArray(), Util.UTF8)); f.format("%nDAS = %n"); buffOS = new ByteArrayOutputStream(8000); das.print(buffOS); f.format("%s%n", new String(buffOS.toByteArray(), Util.UTF8)); }
/** * Print a DAS constructed from this DDS and it's BaseType variables. * * @param pw The <code>PrintWriter</code> to print to. */ public void printDAS(PrintWriter pw) { DAS myDAS = null; try { myDAS = this.getDAS(); myDAS.print(pw); } catch (DASException dasE) { pw.println("\n\nCould not get a DAS object to print!\n" + "DDS.getDAS() threw an Exception. Message: \n" + dasE.getMessage()); } }
/** * Print a DAS constructed from this DDS and it's BaseType variables. * * @param pw The <code>PrintWriter</code> to print to. */ public void printDAS(PrintWriter pw) { DAS myDAS = null; try { myDAS = this.getDAS(); myDAS.print(pw); } catch (DASException dasE) { pw.println("\n\nCould not get a DAS object to print!\n" + "DDS.getDAS() threw an Exception. Message: \n" + dasE.getMessage()); } }
public void run() { try { DConnect2 url = new DConnect2(urlField.getText()); DAS das = url.getDAS(); CharArrayWriter aw = new CharArrayWriter(); das.print(new PrintWriter(aw)); outputArea.setText(aw.toString()); // reactivate the other buttons setButtonsEnabled(true); } catch (Exception e) { outputArea.setText(e.toString()); setButtonsEnabled(true); } } }
System.out.println("Retrieving DAS:\n"); DAS das = dc.getDAS(); das.print(System.out);
System.out.println("\n\nThe DAS object, from DDS.getDAS():\n"); DAS thisDAS = dds.getDAS(); thisDAS.print(System.out); dds.printXML(System.out);
System.out.println("\n\nThe DAS object, from DDS.getDAS():\n"); DAS thisDAS = dds.getDAS(); thisDAS.print(System.out); dds.printXML(System.out);
private static void doit(String urlName) throws IOException, DAP2Exception { System.out.println("DODSV read =" + urlName); try (DConnect2 dodsConnection = new DConnect2(urlName, true)) { // get the DDS DDS dds = dodsConnection.getDDS(); dds.print(System.out); DodsV root = DodsV.parseDDS(dds); // get the DAS DAS das = dodsConnection.getDAS(); das.print(System.out); root.parseDAS(das); // show the dodsV tree root.show(System.out, ""); } }
System.err.println("DAS:"); das.print(System.out); } catch (DAP2Exception e) { System.err.println(e);
if (debugOpenResult) { System.out.println("DAS = "); das.print(System.out);
myDAS.print(Out); rs.getResponse().setStatus(HttpServletResponse.SC_OK); if (Debug.isSet("showResponse")) {
das.print(System.out); System.out.println();
DAS das = dc2.getDAS(); bytes.reset(); das.print(output); break;
DAS das = new DAS(); das.parse(teststream); das.print(resultstream); break; case ISDDS: