Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.javaswift.joss.command.impl.container;
 
 
    private Character delimiter;
    public ListDirectoryCommandImpl(Account accountHttpClient httpClientAccess accessContainer container,
                                    ListInstructions listInstructionsCharacter delimiter) {
        super(accounthttpClientaccesscontainerlistInstructions);
        this. = delimiter;
    }
    protected Collection<DirectoryOrObjectgetReturnObject(HttpResponse responsethrows IOException {
        StoredObjectListElement[] list = createObjectMapper(false)
                .readValue(response.getEntity().getContent(), StoredObjectListElement[].class);
        List<DirectoryOrObjectfiles = new ArrayList<DirectoryOrObject>();
        for (StoredObjectListElement header : list) {
            if (header.subdir != null) {
                files.add(new Directory(header.subdir));
            } else {
                files.add(getStoredObject(header));
            }
        }
        return files;
    }
New to GrepCode? Check out our FAQ X