Code example for SequenceInputStream

0
                                             new ByteArrayInputStream(xmlStart.getBytes(Charset.forName("ISO-8859-1"))),
                                             compositeInputStream,
                                             new ByteArrayInputStream(xmlEnd.getBytes(Charset.forName("ISO-8859-1"))),
                                         }); 
    Enumeration<InputStream> streams = Collections.enumeration(xmlTagsList);
    SequenceInputStream seqStream = new SequenceInputStream(streams);
    return seqStream;
  } 
 
  public void shutdownAsyncronously() 
  { 
    _shutdownRequested.set(true);
  } 
 
  /** 
   * @see java.lang.Runnable#run() 
   */ 
  @Override 
  public void run() 
  { 
    long lastReportTs = 0;