/** * Constructs a new CreateBucketConfiguration object with given location constraint. */ public CreateBucketConfiguration(String locationConstraint) throws XmlPullParserException { super(); super.name = "CreateBucketConfiguration"; super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/"); this.locationConstraint = locationConstraint; }
/** * Constructs new delete request for given object list and quiet flag. */ public DeleteRequest(List<DeleteObject> objectList, boolean quiet) throws XmlPullParserException { super(); super.name = "Delete"; super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/"); this.objectList = objectList; this.quiet = quiet; } }
/** * Constructs a new notification configuration with default namespace. */ public NotificationConfiguration() throws XmlPullParserException { super(); super.name = "NotificationConfiguration"; super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/"); }
/** * Constructs new delete request for given object list and quiet flag. */ public DeleteRequest(List<DeleteObject> objectList, boolean quiet) throws XmlPullParserException { super(); super.name = "Delete"; super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/"); this.objectList = objectList; this.quiet = quiet; } }
/** * Constructs a new notification configuration with default namespace. */ public NotificationConfiguration() throws XmlPullParserException { super(); super.name = "NotificationConfiguration"; super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/"); }
/** * Constructs a new CreateBucketConfiguration object with given location constraint. */ public CreateBucketConfiguration(String locationConstraint) throws XmlPullParserException { super(); super.name = "CreateBucketConfiguration"; super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/"); this.locationConstraint = locationConstraint; }
/** * Constucts a new CompleteMultipartUpload object with given parts. */ public CompleteMultipartUpload(Part[] parts) throws XmlPullParserException { super(); super.name = "CompleteMultipartUpload"; super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/"); if (parts == null) { this.partList = null; } else { this.partList = Arrays.asList(parts); } }
/** * Constucts a new CompleteMultipartUpload object with given parts. */ public CompleteMultipartUpload(Part[] parts) throws XmlPullParserException { super(); super.name = "CompleteMultipartUpload"; super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/"); if (parts == null) { this.partList = null; } else { this.partList = Arrays.asList(parts); } }
NAMESPACE_DICTIONARY.set("", "http://www.w3.org/2005/Atom"); NAMESPACE_DICTIONARY.set("app", "http://www.w3.org/2007/app"); NAMESPACE_DICTIONARY.set("batch", "http://schemas.google.com/gdata/batch"); NAMESPACE_DICTIONARY.set("docs", "http://schemas.google.com/docs/2007"); NAMESPACE_DICTIONARY.set("gs", "http://schemas.google.com/spreadsheets/2006"); NAMESPACE_DICTIONARY.set("gd", "http://schemas.google.com/g/2005"); NAMESPACE_DICTIONARY.set("gsx", "http://schemas.google.com/spreadsheets/2006/extended"); NAMESPACE_DICTIONARY.set("openSearch", "http://a9.com/-/spec/opensearch/1.1/"); NAMESPACE_DICTIONARY.set("xml", "http://www.w3.org/XML/1998/namespace");
/** * Constructs a new XmlEntity class. */ public XmlEntity() throws XmlPullParserException { super.namespaceDictionary = new XmlNamespaceDictionary(); super.namespaceDictionary.set("s3", "http://s3.amazonaws.com/doc/2006-03-01/"); super.namespaceDictionary.set("", ""); this.xmlPullParser = Xml.createParser(); this.defaultNamespaceDictionary = new XmlNamespaceDictionary(); }
public static void testAtomParse () { FileInputStream fis = null; try { XmlNamespaceDictionary nameSpace = new XmlNamespaceDictionary().set("", "http://www.w3.org/2005/Atom").set("db", "http://www.douban.com/xmlns/").set("gd", "http://schemas.google.com/g/2005").set("openSearch", "http://a9.com/-/spec/opensearchrss/1.0/").set("opensearch", "http://a9.com/-/spec/opensearchrss/1.0/"); XmlObjectParser parser = new XmlObjectParser(nameSpace); //JsonObjectParser parser = new JsonObjectParser(new JacksonFactory()); fis = new FileInputStream("/home/zwei/doubantestxml"); DoubanPeopleEntry result = parser.parseAndClose(fis, Charset.forName("utf-8"), DoubanPeopleEntry.class); System.out.println("result : " + result); } catch (FileNotFoundException ex) { Logger.getLogger(PlayGround.class.getName()).log(Level.SEVERE, null, ex); } catch (IOException ex) { Logger.getLogger(PlayGround.class.getName()).log(Level.SEVERE, null, ex); } finally { try { fis.close(); } catch (IOException ex) { Logger.getLogger(PlayGround.class.getName()).log(Level.SEVERE, null, ex); } } }
/** * Constructs a new XmlEntity class. */ public XmlEntity() throws XmlPullParserException { super.namespaceDictionary = new XmlNamespaceDictionary(); super.namespaceDictionary.set("s3", "http://s3.amazonaws.com/doc/2006-03-01/"); super.namespaceDictionary.set("", ""); this.xmlPullParser = Xml.createParser(); this.defaultNamespaceDictionary = new XmlNamespaceDictionary(); }
/** * Fills up this ErrorResponse object's fields by reading/parsing values from given Reader input stream. */ @Override public void parseXml(Reader reader) throws IOException, XmlPullParserException { XmlNamespaceDictionary namespaceDictionary = new XmlNamespaceDictionary(); namespaceDictionary.set("", ""); super.parseXml(reader, namespaceDictionary); }
/** * Fills up this ErrorResponse object's fields by reading/parsing values from given Reader input stream. */ @Override public void parseXml(Reader reader) throws IOException, XmlPullParserException { XmlNamespaceDictionary namespaceDictionary = new XmlNamespaceDictionary(); namespaceDictionary.set("", ""); super.parseXml(reader, namespaceDictionary); }
alias = originalAlias + suffix; namespaceDictionary.set(alias, namespace);