@Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { this.elementStack.push(localName); if (FileConstants.FILE_ELEMENT.equals(localName)) { this.name = Constants.EMPTY_STRING; this.fileProperties = new FileProperties(); } if (FileConstants.DIRECTORY_ELEMENT.equals(localName)) { this.name = Constants.EMPTY_STRING; this.directoryProperties = new FileDirectoryProperties(); } }
@Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { this.elementStack.push(localName); if (FileConstants.FILE_ELEMENT.equals(localName)) { this.name = Constants.EMPTY_STRING; this.fileProperties = new FileProperties(); } if (FileConstants.DIRECTORY_ELEMENT.equals(localName)) { this.name = Constants.EMPTY_STRING; this.directoryProperties = new FileDirectoryProperties(); } }
/** * Initializes a new instance of the CloudFileAttributes class */ public FileAttributes() { this.setMetadata(new HashMap<String, String>()); this.setProperties(new FileProperties()); }
/** * Initializes a new instance of the CloudFileAttributes class */ public FileAttributes() { this.setMetadata(new HashMap<String, String>()); this.setProperties(new FileProperties()); }
/** * Creates an instance of the <code>CloudFile</code> class by copying values from another cloud file. * * @param otherFile * A <code>CloudFile</code> object that represents the file to copy. */ public CloudFile(final CloudFile otherFile) { this.metadata = new HashMap<String, String>(); this.properties = new FileProperties(otherFile.properties); if (otherFile.metadata != null) { for (final String key : otherFile.metadata.keySet()) { this.metadata.put(key, otherFile.metadata.get(key)); } } this.storageUri = otherFile.storageUri; this.share = otherFile.share; this.parent = otherFile.parent; this.fileServiceClient = otherFile.fileServiceClient; this.name = otherFile.name; this.setStreamMinimumReadSizeInBytes(otherFile.getStreamMinimumReadSizeInBytes()); this.setStreamWriteSizeInBytes(otherFile.getStreamWriteSizeInBytes()); }
/** * Creates an instance of the <code>CloudFile</code> class by copying values from another cloud file. * * @param otherFile * A <code>CloudFile</code> object that represents the file to copy. */ public CloudFile(final CloudFile otherFile) { this.metadata = new HashMap<String, String>(); this.properties = new FileProperties(otherFile.properties); if (otherFile.metadata != null) { for (final String key : otherFile.metadata.keySet()) { this.metadata.put(key, otherFile.metadata.get(key)); } } this.storageUri = otherFile.storageUri; this.share = otherFile.share; this.parent = otherFile.parent; this.fileServiceClient = otherFile.fileServiceClient; this.name = otherFile.name; this.setStreamMinimumReadSizeInBytes(otherFile.getStreamMinimumReadSizeInBytes()); this.setStreamWriteSizeInBytes(otherFile.getStreamWriteSizeInBytes()); }