Package java.io

Examples of java.io.DataOutputStream.writeBoolean()


    void writeDefaultsConfig() {
        try {
            File lastModelFile = getLastModelFile();
            DataOutputStream out = new DataOutputStream(
                    new FileOutputStream(lastModelFile));
            out.writeBoolean(lastModelDir != null);
            if (lastModelDir != null) {
                out.writeUTF(lastModelDir.getAbsolutePath());
            }
            out.writeBoolean(compiledDir != null);
            if (compiledDir != null) {
View Full Code Here


                    new FileOutputStream(lastModelFile));
            out.writeBoolean(lastModelDir != null);
            if (lastModelDir != null) {
                out.writeUTF(lastModelDir.getAbsolutePath());
            }
            out.writeBoolean(compiledDir != null);
            if (compiledDir != null) {
                out.writeUTF(compiledDir.getAbsolutePath());
            }
            out.close();
        } catch (IOException ex) {
View Full Code Here

                        ZooTrace.logTraceMessage(LOG,
                                                 ZooTrace.SESSION_TRACE_MASK,
                                                 "Session 0x" + Long.toHexString(id)
                                                 + " is valid: "+ valid);
                    }
                    dos.writeBoolean(valid);
                    qp.setData(bos.toByteArray());
                    queuedPackets.add(qp);
                    break;
                case Leader.REQUEST:
                    bb = ByteBuffer.wrap(qp.getData());
View Full Code Here

                for (final Map.Entry<String, PluginType> entry : outer.getValue().entrySet()) {
                    dos.writeUTF(entry.getKey());
                    final PluginType pt = entry.getValue();
                    dos.writeUTF(pt.getPluginClass().getName());
                    dos.writeUTF(pt.getElementName());
                    dos.writeBoolean(pt.isObjectPrintable());
                    dos.writeBoolean(pt.isDeferChildren());
                }
            }
        } catch (final Exception ex) {
            ex.printStackTrace();
View Full Code Here

                    dos.writeUTF(entry.getKey());
                    final PluginType pt = entry.getValue();
                    dos.writeUTF(pt.getPluginClass().getName());
                    dos.writeUTF(pt.getElementName());
                    dos.writeBoolean(pt.isObjectPrintable());
                    dos.writeBoolean(pt.isDeferChildren());
                }
            }
        } catch (final Exception ex) {
            ex.printStackTrace();
        } finally {
View Full Code Here

           
          DataOutputStream out = call.connection.out;
          synchronized (out) {
            try {
              out.writeInt(call.id);                // write call id
              out.writeBoolean(error!=null);        // write error flag
              if (error == null) {
                value.write(out);
              } else {
                WritableUtils.writeString(out, errorClass);
                WritableUtils.writeString(out, error);
View Full Code Here

          } else {
            buf.reset();
          }
          DataOutputStream out = new DataOutputStream(buf);
          out.writeInt(call.id);                // write call id
          out.writeBoolean(error != null);      // write error flag

          if (error == null) {
            value.write(out);
          } else {
            WritableUtils.writeString(out, errorClass);
View Full Code Here

            ByteArrayOutputStream bout = new ByteArrayOutputStream();
            DataOutputStream out = new DataOutputStream(bout);

            out.writeLong(end);
            out.writeInt(lifetime);
            out.writeBoolean(anonymity);
            out.writeBoolean(conf);
            out.writeBoolean(credDeleg);
            out.writeBoolean(integState);
            out.writeBoolean(mutualAuth);
            out.writeBoolean(replayDet);
View Full Code Here

            DataOutputStream out = new DataOutputStream(bout);

            out.writeLong(end);
            out.writeInt(lifetime);
            out.writeBoolean(anonymity);
            out.writeBoolean(conf);
            out.writeBoolean(credDeleg);
            out.writeBoolean(integState);
            out.writeBoolean(mutualAuth);
            out.writeBoolean(replayDet);
            out.writeBoolean(sequenceDet);
View Full Code Here

            out.writeLong(end);
            out.writeInt(lifetime);
            out.writeBoolean(anonymity);
            out.writeBoolean(conf);
            out.writeBoolean(credDeleg);
            out.writeBoolean(integState);
            out.writeBoolean(mutualAuth);
            out.writeBoolean(replayDet);
            out.writeBoolean(sequenceDet);
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.