Examples of writeHeader()


Examples of org.dcm4che3.io.DicomOutputStream.writeHeader()

                dos.writeHeader(Tag.AcquisitionContextSequence, VR.SQ, -1);
                dos.writeHeader(Tag.SequenceDelimitationItem, null, 0);
                dos.writeDataset(fmi, attrs);
                dos.writeHeader(Tag.PixelData, VR.OB, -1);
                if (!cl.hasOption("mpeg")) {
                    dos.writeHeader(Tag.Item, null, 0);
                    dos.writeHeader(Tag.Item, null, (jpgLen + 1) & ~1);
                    dos.write(buffer, 0, jpgHeaderLen);
                }
                int r;
                while ((r = jpgInput.read(buffer)) > 0) {
View Full Code Here

Examples of org.dcm4che3.io.DicomOutputStream.writeHeader()

                dos.writeHeader(Tag.SequenceDelimitationItem, null, 0);
                dos.writeDataset(fmi, attrs);
                dos.writeHeader(Tag.PixelData, VR.OB, -1);
                if (!cl.hasOption("mpeg")) {
                    dos.writeHeader(Tag.Item, null, 0);
                    dos.writeHeader(Tag.Item, null, (jpgLen + 1) & ~1);
                    dos.write(buffer, 0, jpgHeaderLen);
                }
                int r;
                while ((r = jpgInput.read(buffer)) > 0) {
                    dos.write(buffer, 0, r);
View Full Code Here

Examples of org.dcm4che3.io.DicomOutputStream.writeHeader()

                if (!cl.hasOption("mpeg")) {
                    if ((jpgLen & 1) != 0) {
                        dos.write(0);
                    }
                }
                dos.writeHeader(Tag.SequenceDelimitationItem, null, 0);
            } finally {
                dos.close();
            }
        } finally {
            jpgInput.close();
View Full Code Here

Examples of org.geotools.data.shapefile.dbf.DbaseFileHeader.writeHeader()

        dbfheader.setNumRecords(0);

        WritableByteChannel dbfChannel = dbfStoragefile.getWriteChannel();

        try {
            dbfheader.writeHeader(dbfChannel);
        } finally {
            dbfChannel.close();
        }

        if (crs != null) {
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataWriter.writeHeader()

        folder.mkdirs();
      }
      OutputStream output = new BufferedOutputStream(
          new FileOutputStream(execFile, options.getAppend()));
      ExecutionDataWriter writer = new ExecutionDataWriter(output);
      writer.writeHeader();
      runtime.collect(writer, false);
      output.close();
    } catch (IOException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataWriter.writeHeader()

        folder.mkdirs();
      }
      OutputStream output = new BufferedOutputStream(
          new FileOutputStream(execFile, options.getMerge()));
      ExecutionDataWriter writer = new ExecutionDataWriter(output);
      writer.writeHeader();
      runtime.collect(writer, false);
      output.close();
    } catch (IOException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataWriter.writeHeader()

        folder.mkdirs();
      }
      OutputStream output = new BufferedOutputStream(
          new FileOutputStream(execFile, options.getAppend()));
      ExecutionDataWriter writer = new ExecutionDataWriter(output);
      writer.writeHeader();
      runtime.collect(writer, false);
      output.close();
    } catch (IOException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataWriter.writeHeader()

        folder.mkdirs();
      }
      OutputStream output = new BufferedOutputStream(
          new FileOutputStream(execFile, options.getAppend()));
      ExecutionDataWriter writer = new ExecutionDataWriter(output);
      writer.writeHeader();
      runtime.collect(writer, false);
      output.close();
    } catch (IOException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataWriter.writeHeader()

        folder.mkdirs();
      }
      OutputStream output = new BufferedOutputStream(
          new FileOutputStream(execFile, options.getMerge()));
      ExecutionDataWriter writer = new ExecutionDataWriter(output);
      writer.writeHeader();
      runtime.collect(writer, false);
      output.close();
    } catch (IOException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.jboss.marshalling.StreamHeader.writeHeader()

            public void readHeader(final ByteInput input) throws IOException {
                if (header != null) header.readHeader(input);
            }

            public void writeHeader(final ByteOutput output) throws IOException {
                if (header != null) header.writeHeader(output);
                output.write(0);
            }
        });
        return super.create(config, target);
    }
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.