public void toASCII(BaseType dtype, PrintWriter pw) { toASCII(dtype, pw, true, null, true); }
private void showSequence(DSequence dseq, PrintWriter pw, boolean addName, String rootName, boolean newLine) { if (rootName != null) rootName += "." + dseq.getEncodedName(); else rootName = dseq.getEncodedName(); pw.println(toASCIIFlatName(dseq, rootName)); for (int row = 0; row < dseq.getRowCount(); row++) { Vector v = dseq.getRow(row); int j = 0; for (Enumeration e2 = v.elements(); e2.hasMoreElements();) { BaseType ta = (BaseType) e2.nextElement(); if (j > 0) pw.print(", "); toASCII(ta, pw, false, rootName, false); j++; } pw.println(""); } if (newLine) pw.print("\n"); }
public void toASCII(BaseType dtype, PrintWriter pw) { toASCII(dtype, pw, true, null, true); }
private void showSequence(DSequence dseq, PrintWriter pw, boolean addName, String rootName, boolean newLine) { if (rootName != null) rootName += "." + dseq.getName(); else rootName = dseq.getName(); pw.println(toASCIIFlatName(dseq, rootName)); for (int row = 0; row < dseq.getRowCount(); row++) { Vector v = dseq.getRow(row); int j = 0; for (Enumeration e2 = v.elements(); e2.hasMoreElements();) { BaseType ta = (BaseType) e2.nextElement(); if (j > 0) pw.print(", "); toASCII(ta, pw, false, rootName, false); j++; } pw.println(""); } if (newLine) pw.print("\n"); }
private void showStructure(DStructure dstruct, PrintWriter pw, boolean addName, String rootName, boolean newLine) { if (rootName != null) rootName += "." + dstruct.getEncodedName(); else rootName = dstruct.getEncodedName(); boolean firstPass = true; Enumeration e = dstruct.getVariables(); while (e.hasMoreElements()) { BaseType ta = (BaseType) e.nextElement(); if(!ta.isProject()) continue; if (!newLine && !firstPass) pw.print(", "); firstPass = false; toASCII(ta, pw, addName, rootName, newLine); } if (newLine) pw.print("\n"); }
private void showStructure(DStructure dstruct, PrintWriter pw, boolean addName, String rootName, boolean newLine) { if (rootName != null) rootName += "." + dstruct.getName(); else rootName = dstruct.getName(); boolean firstPass = true; Enumeration e = dstruct.getVariables(); while (e.hasMoreElements()) { BaseType ta = (BaseType) e.nextElement(); if(!ta.isProject()) continue; if (!newLine && !firstPass) pw.print(", "); firstPass = false; toASCII(ta, pw, addName, rootName, newLine); } if (newLine) pw.print("\n"); }
if ((i > 0) && (bt instanceof DString)) os.print(", "); toASCII(bt, os, false, null, false); } else { if (i > 0)
private void showGrid(DGrid dgrid, PrintWriter pw, boolean addName, String rootName, boolean newLine) { int subprojections = dgrid.projectedComponents(true); if (rootName != null) rootName += "." + dgrid.getName(); else if(subprojections > 1) rootName = dgrid.getName(); else rootName = null; boolean firstPass = true; Enumeration e = dgrid.getVariables(); while (e.hasMoreElements()) { BaseType ta = (BaseType) e.nextElement(); if(!ta.isProject()) continue; if (!newLine && !firstPass) pw.print(", "); firstPass = false; toASCII(ta, pw, addName, rootName, newLine); } if (newLine) pw.print("\n"); }
private void showGrid(DGrid dgrid, PrintWriter pw, boolean addName, String rootName, boolean newLine) { int subprojections = dgrid.projectedComponents(true); if (rootName != null) rootName += "." + dgrid.getEncodedName(); else if(subprojections > 1) rootName = dgrid.getEncodedName(); else rootName = null; boolean firstPass = true; Enumeration e = dgrid.getVariables(); while (e.hasMoreElements()) { BaseType ta = (BaseType) e.nextElement(); if(!ta.isProject()) continue; if (!newLine && !firstPass) pw.print(", "); firstPass = false; toASCII(ta, pw, addName, rootName, newLine); } if (newLine) pw.print("\n"); }
if ((i > 0) && (bt instanceof DString)) os.print(", "); toASCII(bt, os, false, null, false); } else { if (i > 0)
if(!((ServerMethods)bt).isRead()) // make sure data is in memory, but don't read it twice! ((ServerMethods) bt).read(datasetName, specialO); toASCII(bt, pw);
if(!((ServerMethods)bt).isRead()) // make sure data is in memory, but don't read it twice! ((ServerMethods) bt).read(datasetName, specialO); toASCII(bt, pw);
writer.toASCII(pw,dds,ds);
writer.toASCII(pw, dds, ds);