/** Export configuration */ public void exportConfiguration(java.io.OutputStream os) throws java.io.IOException, ManifoldCFException { // Write a version indicator ManifoldCF.writeDword(os, 1); // Get the authority list IRepositoryConnection[] list = getAllConnections(); // Write the number of authorities ManifoldCF.writeDword(os, list.length); // Loop through the list and write the individual repository connection info int i = 0; while (i < list.length) { IRepositoryConnection conn = list[i++]; ManifoldCF.writeString(os, conn.getName()); ManifoldCF.writeString(os, conn.getDescription()); ManifoldCF.writeString(os, conn.getClassName()); ManifoldCF.writeString(os, conn.getConfigParams().toXML()); ManifoldCF.writeString(os, conn.getACLAuthority()); ManifoldCF.writeDword(os, conn.getMaxConnections()); String[] throttles = conn.getThrottles(); ManifoldCF.writeDword(os, throttles.length); int j = 0; while (j < throttles.length) { String throttleName = throttles[j++]; ManifoldCF.writeString(os, throttleName); ManifoldCF.writeString(os, conn.getThrottleDescription(throttleName)); ManifoldCF.writefloat(os, conn.getThrottleValue(throttleName)); } } }