Examples of writeChar()


Examples of java.io.DataOutputStream.writeChar()

     *         space data from the file
     */
    static void writeHeader(OutputStream os, SSpaceFormat format)
            throws IOException {
        DataOutputStream dos = new DataOutputStream(os);
        dos.writeChar('s');
        dos.writeChar('0' + format.ordinal());
    }

    /**
     * Writes the semantic space to the file using the {@code TEXT} format.
View Full Code Here

Examples of java.io.DataOutputStream.writeChar()

     */
    static void writeHeader(OutputStream os, SSpaceFormat format)
            throws IOException {
        DataOutputStream dos = new DataOutputStream(os);
        dos.writeChar('s');
        dos.writeChar('0' + format.ordinal());
    }

    /**
     * Writes the semantic space to the file using the {@code TEXT} format.
     *
 
View Full Code Here

Examples of java.io.DataOutputStream.writeChar()

    } finally {
      dataXceiverServer.balanceThrottler.release();
      if (isOpSuccess) {
        try {
          // send one last byte to indicate that the resource is cleaned.
          reply.writeChar('d');
        } catch (IOException ignored) {
        }
      }
      IOUtils.closeStream(reply);
      IOUtils.closeStream(blockSender);
View Full Code Here

Examples of java.io.DataOutputStream.writeChar()

    } finally {
      dataXceiverServer.balanceThrottler.release();
      if (isOpSuccess) {
        try {
          // send one last byte to indicate that the resource is cleaned.
          reply.writeChar('d');
        } catch (IOException ignored) {
        }
      }
      IOUtils.closeStream(reply);
      IOUtils.closeStream(blockSender);
View Full Code Here

Examples of java.io.DataOutputStream.writeChar()

    } finally {
      dataXceiverServer.balanceThrottler.release();
      if (isOpSuccess) {
        try {
          // send one last byte to indicate that the resource is cleaned.
          reply.writeChar('d');
        } catch (IOException ignored) {
        }
      }
      IOUtils.closeStream(reply);
      IOUtils.closeStream(blockSender);
View Full Code Here

Examples of java.io.DataOutputStream.writeChar()

    } finally {
      dataXceiverServer.balanceThrottler.release();
      if (isOpSuccess) {
        try {
          // send one last byte to indicate that the resource is cleaned.
          reply.writeChar('d');
        } catch (IOException ignored) {
        }
      }
      IOUtils.closeStream(reply);
      IOUtils.closeStream(blockSender);
View Full Code Here

Examples of java.io.DataOutputStream.writeChar()

                }
                else {
                    // no stringheap data
                    //if there is data in the string lists, write a leading 0
                    if ( stringListLength > 0 ) {
                        dos.writeChar(0);
                    }
                }
       
                //write out the data in the StringList and update the
                //reference in the local ref heap.
View Full Code Here

Examples of java.io.DataOutputStream.writeChar()

                        if (ref !=0) {
                            //update the ref         
                            refheap[i+StringHeap.CHAR_HEAP_POINTER_OFFSET] = pos;
                            //write out the chars in the string
                            dos.writeChars((String)cas.getStringHeap().stringList.get(ref));
                            dos.writeChar(0); // null terminate each string
                            //update pos
                            pos += 1 + ((String) cas.getStringHeap().stringList.get(ref)).length();
                        }       
                    }
                }
View Full Code Here

Examples of java.io.DataOutputStream.writeChar()

                    }
                }

                //word alignment
                if (stringTotalLength % != 0) {
                    dos.writeChar(0);
                }
      }

      // write out the string ref heap
      // each reference consist of a offset into stringheap and a length
View Full Code Here

Examples of java.io.DataOutputStream.writeChar()

    } finally {
      dataXceiverServer.balanceThrottler.release();
      if (isOpSuccess) {
        try {
          // send one last byte to indicate that the resource is cleaned.
          reply.writeChar('d');
        } catch (IOException ignored) {
        }
      }
      IOUtils.closeStream(reply);
      IOUtils.closeStream(blockSender);
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.