Store admin object
@param ao The admin object
@param writer The writer
@exception Exception Thrown if an error occurs
485633
protected void storeAdminObject(AdminObject ao, XMLStreamWriter writer) throws Exception
   {
      writer.writeStartElement(CommonXML.ELEMENT_ADMIN_OBJECT);

      if (ao.getClassName() != null)
         writer.writeAttribute(CommonXML.ATTRIBUTE_CLASS_NAME,
                               ao.getValue(CommonXML.ATTRIBUTE_CLASS_NAME, ao.getClassName()));

      if (ao.getJndiName() != null)
         writer.writeAttribute(CommonXML.ATTRIBUTE_JNDI_NAME,
                               ao.getValue(CommonXML.ATTRIBUTE_JNDI_NAME, ao.getJndiName()));

      if (ao.isEnabled() != null && (ao.hasExpression(CommonXML.ATTRIBUTE_ENABLED) ||
                                     !Defaults.ENABLED.equals(ao.isEnabled())))
         writer.writeAttribute(CommonXML.ATTRIBUTE_ENABLED,
               ao.getValue(CommonXML.ATTRIBUTE_ENABLED, ao.isEnabled().toString()));

      if (ao.getId() != null)
         writer.writeAttribute(CommonXML.ATTRIBUTE_ID, ao.getValue(CommonXML.ATTRIBUTE_ID, ao.getId()));

      if (ao.getConfigProperties() != null && !ao.getConfigProperties().isEmpty())
      {
         Iterator<Map.Entry<String, String>> it = ao.getConfigProperties().entrySet().iterator();
         while (it.hasNext())
         {
            Map.Entry<String, String> entry = it.next();

            writer.writeStartElement(CommonXML.ELEMENT_CONFIG_PROPERTY);
            writer.writeAttribute(CommonXML.ATTRIBUTE_NAME, entry.getKey());
            writer.writeCharacters(ao.getValue(CommonXML.ELEMENT_CONFIG_PROPERTY, entry.getKey(), entry.getValue()));
            writer.writeEndElement();
         }
      }

      writer.writeEndElement();
   }
1270186
public static final void setWriter(String format, TreeWriter writer) {
		String key = format.toLowerCase();
		writers.put(key, writer);
		if (JSON.equals(key)) {
			cachedJsonWriter = writer;
		}
	}
293082
public Writer write(Writer writer) throws JSONException {
    try {
      boolean b = false;
      int len = length();

      writer.write('[');

      for (int i = 0; i < len; i += 1) {
        if (b) {
          writer.write(',');
        }
        Object v = this.myArrayList.get(i);
        if (v instanceof JSONObject) {
          ((JSONObject) v).write(writer);
        } else if (v instanceof JSONArray) {
          ((JSONArray) v).write(writer);
        } else {
          writer.write(JSONObject.valueToString(v));
        }
        b = true;
      }
      writer.write(']');
      return writer;
    } catch (IOException e) {
      throw new JSONException(e);
    }
  }
687484
@Override
	public void process(Writer writer)
	{
		try
		{
			template.process(data, writer);
		}
		catch (IOException e)
		{
			throw new RuntimeException("Error writing template to writer", e);
		}
		catch (TemplateException e)
		{
			throw new RuntimeException(e.getMessage(), e);
		}
	}
748832
public void store(Activation metadata, XMLStreamWriter writer) throws Exception
   {
      if (metadata != null && writer != null)
      {
         writer.writeStartElement(XML.ELEMENT_IRONJACAMAR);
         storeCommon(metadata, writer);
         writer.writeEndElement();
      }
   }
1200132
public static void write(char c, Writer writer) {
        try {
            writer.write(c);
        } catch (IOException e) {
            throw E.ioException(e);
        }
    }
640480
public void write(Workspace workspace, Writer writer) {
        if (workspace != null && writer != null) {
            for (DynamicView view : workspace.getViews().getDynamicViews()) {
                write(view, writer);
            }
        }
    }
1158293
def Serialize(self, writer):
        
        self.SerializeUnsigned(writer)
        writer.WriteByte(1)
        self.Script.Serialize(writer)
1335425
public static void put(Writer writer, Character value) throws IOException {
		if (value == null) {
			writer.write("null");
		} else {
			writer.write("\"");
			writer.write(sanitize(value));
			writer.write("\"");
		}
	}
925708
public void writeExternal(PofWriter writer)
            throws IOException {
        writer.writeString(0, name);
        writer.writeLong(1, last);
    }
562343
public void writeParseText(Writer writer) throws IOException {
        require(prefs.readParse, "AgigaPrefs.readParse must be true for writeParseText()");
        writer.write(parseText);
        writer.write("\n");
    }
370624
void save(final ZipUTF8Writer writer) throws IOException {
        this.odsElements.createEmptyElements(writer);
        this.odsElements.writeImmutableElements(this.xmlUtil, writer);
        this.odsElements.writeMeta(this.xmlUtil, writer);
        this.odsElements.writeStyles(this.xmlUtil, writer);
        this.odsElements.writeContent(this.xmlUtil, writer);
        this.odsElements.writeSettings(this.xmlUtil, writer);
        this.logger.log(Level.FINE, "file saved");
    }
92094
public void save(File file) throws IOException {

        Writer writer = null;

        try {
            writer = new Writer(file);
            writer.println(toPrettyString());
        } finally {
            if (writer != null) writer.close();
        }
    }
1345003
public static void parkAndSerialize(final FiberWriter writer) {
        try {
            Fiber.parkAndSerialize(writer);
        } catch (SuspendExecution e) {
            throw RuntimeSuspendExecution.of(e);
        }
    }
1131018
public void writeTo(Writer writer) throws IOException {
        JsonSerializer.write(Json.jObject("template", asJson()), writer);
        writer.flush();
    }
84749
public Writer write(Writer writer) throws JSONException {
        try {
            boolean notFirst = false;
            writer.write('{');
            for(Iterator it = myHashMap.entrySet().iterator(); it.hasNext();) {
                Map.Entry entry = (Entry)it.next();
                if (notFirst) {
                    writer.write(',');
                }
                writeQuoted(writer, entry.getKey());
                writer.write(':');
                writeValue(writer, entry.getValue());
                notFirst = true;
            }
            writer.write('}');
            return writer;
        } catch (IOException e) {
            throw new JSONException(e);
        }
    }
710266
public <T> ExcelDataWriter<?> registerDataWriter(Class<T> type, ExcelDataWriter<T> writer) {
        if (writer != null) {
            return writers.put(type, writer);
        } else {
            return null;
        }
    }