Examples of writeHeader()


Examples of com.xuggle.xuggler.IContainer.writeHeader()

    retval = container.open(
        this.getClass().getName()+"_"+TestUtils.getNameOfCallingMethod()
        + ".mp3", IContainer.Type.WRITE, null);
    assertTrue("could not open file", retval >= 0);
   
    retval = container.writeHeader();
    assertTrue("should fail instead of core dumping", retval < 0);
  }

  @Test
  public void testCreateSDPData()
View Full Code Here

Examples of de.netseeker.ejoe.io.DataChannel.writeHeader()

                    dataBuf.position( 0 );
                    log.log( Level.FINE, "Going to send request..."
                            + new String( tmp, EJConstants.EJOE_DEFAULT_CHARSET ) );
                }

                dataChannel.writeHeader( serverInfo, dataBuf, this._connectionTimeout );
            }

            dataChannel.nonBlockingWrite( _channel, dataBuf );
            log.log( Level.FINE, "Request sent." );
        }
View Full Code Here

Examples of de.netseeker.ejoe.io.DataChannel.writeHeader()

                    dataBuf.flip();
                }

                this._receiverInfo.releaseAttachment();

                dataChannel.writeHeader( this._receiverInfo, dataBuf, EJConstants.EJOE_CONNECTION_TIMEOUT );

                if ( log.isLoggable( Level.FINE ) )
                {
                    byte[] tmp = new byte[dataBuf.remaining()];
                    dataBuf.get( tmp );
View Full Code Here

Examples of de.netseeker.ejoe.io.DataChannel.writeHeader()

                dataChannel.nonBlockingWrite( channel, dataBuf );
            }
            // seems that we have no answer for the client
            else
            {
                dataChannel.writeHeader( this._receiverInfo, null, EJConstants.EJOE_CONNECTION_TIMEOUT );
            }

            log.log( Level.FINE, "Server response sent." );
        }
        finally
View Full Code Here

Examples of htsjdk.variant.variantcontext.writer.VariantContextWriter.writeHeader()

        FeatureCodec codec = CodecFactory.getCodec(inpath, genome);
        AbstractFeatureReader<Feature, ?> bfs = AbstractFeatureReader.getFeatureReader(inpath, codec, false);
        VCFHeader header0 = (VCFHeader) bfs.getHeader();

        VariantContextWriter writer = getWriter();
        writer.writeHeader(header0);
        writer.close();

        AbstractFeatureReader<Feature, ?> bfs1 = AbstractFeatureReader.getFeatureReader(outFile.getAbsolutePath(), codec, false);
        VCFHeader header1 = (VCFHeader) bfs1.getHeader();
View Full Code Here

Examples of htsjdk.variant.variantcontext.writer.VariantContextWriter.writeHeader()

        Iterable<VCFVariant> iter0 = bfs.iterator();
        List<VCFVariant> list0 = new ArrayList<VCFVariant>();
        VCFHeader header0 = (VCFHeader) bfs.getHeader();

        VariantContextWriter writer = getWriter();
        writer.writeHeader(header0);
        for (VCFVariant var : iter0) {
            writer.add(var.getVariantContext());
            list0.add(var);
        }
        writer.close();
View Full Code Here

Examples of htsjdk.variant.variantcontext.writer.VariantContextWriter.writeHeader()

        EnumSet<Options> options = VariantContextWriterFactory.DEFAULT_OPTIONS;
        options.add(Options.ALLOW_MISSING_FIELDS_IN_HEADER);
        options.remove(Options.INDEX_ON_THE_FLY);
        VariantContextWriter writer = VariantContextWriterFactory.create(outputStream, seqDict, options);

        writer.writeHeader(this.header);

        while(features.hasNext()){
            writer.add(features.next().getVariantContext());
        }
View Full Code Here

Examples of htsjdk.variant.variantcontext.writer.VariantContextWriter.writeHeader()

                System.out.print(count);
            else
                System.out.print(".");
            if (firstFile){
                VCFHeader header = (VCFHeader)reader.getHeader();
                outputWriter.writeHeader(header);
                firstFile = false;
            }

            Iterator<VariantContext> it = reader.iterator();
View Full Code Here

Examples of org.apache.hadoop.util.DataChecksum.writeHeader()

    // Create a summer and write out its header.
    int bytesPerChecksum = conf.getInt("io.bytes.per.checksum", 512);
    DataChecksum sum =
      DataChecksum.newDataChecksum(DataChecksum.CHECKSUM_CRC32,
          bytesPerChecksum);
    sum.writeHeader(mdOut);

    // Buffer to read in a chunk of data.
    byte[] buf = new byte[bytesPerChecksum];
    // Buffer to store the checksum bytes.
    byte[] chk = new byte[sum.getChecksumSize()];
View Full Code Here

Examples of org.apache.hadoop.util.DataChecksum.writeHeader()

    // Create a summer and write out its header.
    int bytesPerChecksum = conf.getInt("io.bytes.per.checksum", 512);
    DataChecksum sum = DataChecksum.newDataChecksum(
                        DataChecksum.CHECKSUM_CRC32,
                        bytesPerChecksum);
    sum.writeHeader(mdOut);

    // Buffer to read in a chunk of data.
    byte[] buf = new byte[bytesPerChecksum];
    // Buffer to store the checksum bytes.
    byte[] chk = new byte[sum.getChecksumSize()];
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.