Package org.infoset.xml.filter

Examples of org.infoset.xml.filter.RemoveDocumentFilter


      dest.send(constructor.createDocument());
      dest.send(constructor.createElement(NM_USERS));
      dest.send(constructor.createCharacters("\n"));
      while (users.hasNext()) {
         User user = users.next();
         UserResource.toXML(user,new RemoveDocumentFilter(dest));
         dest.send(constructor.createCharacters("\n"));
      }
      dest.send(constructor.createElementEnd(NM_USERS));
      dest.send(constructor.createDocumentEnd());
   }
View Full Code Here


                           StringWriter sw = new StringWriter();
                           rep.write(sw);
                           rep.release();

                           // TODO: optimize by giving item destination to storage
                           loader.generate(new StringReader(sw.toString()), new RemoveDocumentFilter(dest));
                        } catch (Exception ex) {
                           throw new QueryException("Exception during feed entry generation.",ex);
                        }
                     }
View Full Code Here

                  // avoid thread creation because reading an output representation requires a thread
                  StringWriter sw = new StringWriter();
                  rep.write(sw);
                  rep.release();
                  loader.generate(new StringReader(sw.toString()), new RemoveDocumentFilter(dest));
               }
              
            }
         }
      } catch (Exception ex) {
View Full Code Here

                        Entry entry = entries.next();
                        File file = new File(dir,"."+entry.getUUID()+".atom");
                        try {
                           dest.send(constructor.createCharacters("\n"));
                           loader.generate(file.toURI(),
                              new RemoveDocumentFilter(
                                 new ItemFilter() {
                                    boolean started = false;
                                    public void send(Item item)
                                       throws XMLException
                                    {
View Full Code Here

              
               // avoid thread creation because reading an output representation requires a thread
               StringWriter sw = new StringWriter();
               rep.write(sw);
               rep.release();
               loader.generate(new StringReader(sw.toString()), new RemoveDocumentFilter(dest));
              
            }
         }
      } catch (Exception ex) {
         throw new XMLException("Exception while getting ancestors.",ex);
View Full Code Here

            // avoid thread creation because reading an output representation requires a thread
            StringWriter sw = new StringWriter();
            rep.write(sw);
            rep.release();
            DocumentLoader loader = new SAXDocumentLoader();
            loader.generate(new StringReader(sw.toString()), new RemoveDocumentFilter(dest));

         }
      } catch (Exception ex) {
         throw new XMLException("Exception while getting ancestors.",ex);
      }
View Full Code Here

                        Response response = client.handle(new Request(Method.GET,entryRef));
                        if (response.getStatus().isSuccess()) {
                           try {
                              Reader r = response.getEntity().getReader();
                              loader.generate(r,
                                 new RemoveDocumentFilter(
                                    new ItemFilter() {
                                       boolean started = false;
                                       public void send(Item item)
                                          throws XMLException
                                       {
View Full Code Here

TOP

Related Classes of org.infoset.xml.filter.RemoveDocumentFilter

Copyright © 2018 www.massapicom. 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.