Examples of finishWriting()


Examples of com.fasterxml.util.membuf.base.BytesSegment.finishWriting()

            length -= actual;
            if (length == 0) { // complete, can leave
                return;
            }
            // otherwise, need another segment, so complete current write
            seg.finishWriting();
            // and allocate, init-for-writing new one:
            BytesSegment newSeg = _reuseFree().initForWriting();
            seg.relink(newSeg);
            _head = seg = newSeg;
        }
View Full Code Here

Examples of com.fasterxml.util.membuf.base.BytesSegment.finishWriting()

            _freeSegmentCount += 1;
            _firstFreeSegment = newFree;
        }
        // should be set now so:
        final BytesSegment seg = _head;
        seg.finishWriting();
        // and allocate, init-for-writing new one:
        BytesSegment newSeg = _reuseFree().initForWriting();
        seg.relink(newSeg);
        _head = newSeg;
        if (!_head.tryAppend(value)) {
View Full Code Here

Examples of com.fasterxml.util.membuf.base.BytesSegment.finishWriting()

            length -= actual;
            if (length == 0) { // complete, can leave
                return;
            }
            // otherwise, need another segment, so complete current write
            seg.finishWriting();
            // and allocate, init-for-writing new one:
            BytesSegment newSeg = _reuseFree().initForWriting();
            seg.relink(newSeg);
            _head = seg = newSeg;
        }
View Full Code Here

Examples of com.fasterxml.util.membuf.base.LongsSegment.finishWriting()

            _freeSegmentCount += 1;
            _firstFreeSegment = newFree;
        }
        // should be set now so:
        final LongsSegment seg = _head;
        seg.finishWriting();
        // and allocate, init-for-writing new one:
        LongsSegment newSeg = _reuseFree().initForWriting();
        seg.relink(newSeg);
        _head = newSeg;
        if (!_head.tryAppend(value)) {
View Full Code Here

Examples of com.fasterxml.util.membuf.base.LongsSegment.finishWriting()

            length -= actual;
            if (length == 0) { // complete, can leave
                return;
            }
            // otherwise, need another segment, so complete current write
            seg.finishWriting();
            // and allocate, init-for-writing new one:
            LongsSegment newSeg = _reuseFree().initForWriting();
            seg.relink(newSeg);
            _head = seg = newSeg;
        }
View Full Code Here

Examples of com.fasterxml.util.membuf.base.LongsSegment.finishWriting()

    protected void _doAppendChunked(long[] buffer, int offset, int length)
    {
        // first: append length prefix
        if (!_head.tryAppend(length)) {
            final LongsSegment seg = _head;
            seg.finishWriting();
            // and allocate, init-for-writing new one:
            LongsSegment newSeg = _reuseFree().initForWriting();
            seg.relink(newSeg);
            _head = newSeg;
            if (!_head.tryAppend(length)) {
View Full Code Here

Examples of com.fasterxml.util.membuf.base.LongsSegment.finishWriting()

                length -= actual;
                if (length == 0) { // complete, can leave
                    return;
                }
                // otherwise, need another segment, so complete current write
                seg.finishWriting();
                // and allocate, init-for-writing new one:
                LongsSegment newSeg = _reuseFree().initForWriting();
                seg.relink(newSeg);
                _head = seg = newSeg;
            }
View Full Code Here

Examples of net.sf.mzmine.data.RawDataFileWriter.finishWriting()

        processedScans++;
      }

      // Finalize writing
      try {
        filteredRawDataFile = rawDataFileWriter.finishWriting();
        MZmineCore.getCurrentProject().addFile(filteredRawDataFile);

        // Remove the original file if requested
        if (removeOriginal) {
          MZmineCore.getCurrentProject().removeFile(dataFile);
View Full Code Here

Examples of net.sf.mzmine.data.RawDataFileWriter.finishWriting()

      // If this task was canceled, stop processing
      if (!isCanceled()) {

        // Finalize writing
        correctedDataFile = rawDataFileWriter.finishWriting();

        // Add the newly created file to the project
        final MZmineProject project = MZmineCore.getCurrentProject();
        project.addFile(correctedDataFile);
View Full Code Here

Examples of net.sf.mzmine.project.impl.RawDataFileImpl.finishWriting()

        processedScans++;
      }

      // Finalize writing
      correctedDataFile = rawDataFileWriter.finishWriting();

      // Process spectrum depending on ionization type
      switch (ionizationType) {
        case PCI :
        case PCI_METHANE :
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.