All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qiniu.streaming.model.StreamListing Maven / Gradle / Ivy

There is a newer version: 7.17.0
Show newest version
package com.qiniu.streaming.model;

import com.qiniu.util.StringUtils;

/**
 * Created by bailong on 16/9/23.
 */
public final class StreamListing {
    public Item[] items;
    public String marker;

    public boolean isEOF() {
        return StringUtils.isNullOrEmpty(marker);
    }

    public String[] keys() {
        String[] keys = new String[items.length];
        int i = 0;
        for (Item item : items) {
            keys[i++] = item.key;
        }
        return keys;
    }

    private static class Item {
        public String key;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy