Package java.io

Examples of java.io.DataOutput.writeUTF()


                int aUriCode = db.lookup(atts.getURI(i));
                String aValue = atts.getValue(i);
                tempABVS.reset();
                DataOutput tempOut = tempABVS.getDataOutput();
                tempOut.write(ValueTag.XS_UNTYPED_ATOMIC_TAG);
                tempOut.writeUTF(aValue);
                enb.startAttribute(anb);
                anb.setName(aUriCode, aLocalNameCode, aPrefixCode);
                if (attachTypes) {
                    int typeUriCode = db.lookup(XQueryConstants.XS_NSURI);
                    int typeLocalNameCode = db.lookup(BuiltinTypeQNames.UNTYPED_ATOMIC_STR);
View Full Code Here


                int aUriCode = db.lookup(atts.getURI(i));
                String aValue = atts.getValue(i);
                tempABVS.reset();
                DataOutput tempOut = tempABVS.getDataOutput();
                tempOut.write(ValueTag.XS_UNTYPED_ATOMIC_TAG);
                tempOut.writeUTF(aValue);
                enb.startAttribute(anb);
                anb.setName(aUriCode, aLocalNameCode, aPrefixCode);
                if (attachTypes) {
                    int typeUriCode = db.lookup(XQueryConstants.XS_NSURI);
                    int typeLocalNameCode = db.lookup(BuiltinTypeQNames.UNTYPED_ATOMIC_STR);
View Full Code Here

                int aUriCode = db.lookup(atts.getURI(i));
                String aValue = atts.getValue(i);
                tempABVS.reset();
                DataOutput tempOut = tempABVS.getDataOutput();
                tempOut.write(ValueTag.XS_UNTYPED_ATOMIC_TAG);
                tempOut.writeUTF(aValue);
                enb.startAttribute(anb);
                anb.setName(aUriCode, aLocalNameCode, aPrefixCode);
                if (attachTypes) {
                    int typeUriCode = db.lookup(XQueryConstants.XS_NSURI);
                    int typeLocalNameCode = db.lookup(BuiltinTypeQNames.UNTYPED_ATOMIC_STR);
View Full Code Here

          .getStatus().ordinal());

      if (context.getStatus() != OutgoingMessageContext.Status.Success) {
        if (context.getErrorDesc() != null
            && context.getErrorDesc().length() != 0) {
          payloadStream.writeUTF(context.getErrorDesc());
        }
      } else {
        context.getOutput().serialize(payloadStream, new BinaryProtocol());
      }
View Full Code Here

     */
    public static byte[] toUtf(String s) throws UTFDataFormatException {
  try {
      ByteArrayOutputStream bout = new ByteArrayOutputStream(s.length());
      DataOutput dout = new DataOutputStream(bout);
      dout.writeUTF(s);
      return bout.toByteArray();
  } catch (UTFDataFormatException e) {
      throw e;
  } catch (IOException e) {
      throw new AssertionError(e);
View Full Code Here

    {
  try {
      DataOutput dout = new DataOutputStream(out);

      // write LUS host
      dout.writeUTF(response.getHost());

      // write LUS port
      dout.writeShort(intToUshort(response.getPort()));

      // write LUS member groups
View Full Code Here

      // write LUS member groups
      String[] groups = response.getGroups();
      dout.writeInt(groups.length);
      for (int i = 0; i < groups.length; i++) {
    dout.writeUTF(groups[i]);
      }

      // write LUS proxy
      new ObjectOutputStream(out).writeObject(
    new MarshalledInstance(response.getRegistrar(), context));
View Full Code Here

            }
            data.writeByte(COMMIT_AUTHOR_PREFIX);
            FormatCommonV1.writePerson(commit.getAuthor(), data);
            data.writeByte(COMMIT_COMMITTER_PREFIX);
            FormatCommonV1.writePerson(commit.getCommitter(), data);
            data.writeUTF(commit.getMessage());
        }
    }

    private static class FeatureSerializer implements Serializer<RevFeature> {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.