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

com.rt.web.beans.IOItem Maven / Gradle / Ivy

The newest version!
package com.rt.web.beans;

import com.rt.core.beans.Property;

import java.util.Date;

/**
 * io 接口
 */
public class IOItem extends Property {

    private static final long serialVersionUID = 1L;

    /**
     * byteArray
     *
     * @return byte[]
     */
    public byte[] getByteArray() {
        return (byte[]) get("byteArray");
    }

    /**
     * byteArray
     *
     * @param byteArray byteArray
     */
    public void setByteArray(byte[] byteArray) {
        put("byteArray", byteArray);
    }

    /**
     * ETag
     *
     * @return String
     */
    public String getEtag() {
        return getString("etag");
    }

    /**
     * ETag
     *
     * @param etag etag
     */
    public void setEtag(String etag) {
        put("etag", etag);
    }

    /**
     * cacheControl
     *
     * @return String
     */
    public String getCacheControl() {
        return getString("cacheControl");
    }

    /**
     * cacheControl
     *
     * @param cacheControl cacheControl
     */
    public void setCacheControl(String cacheControl) {
        put("cacheControl", cacheControl);
    }

    /**
     * contentType
     *
     * @return String
     */
    public String getContentType() {
        return getString("contentType");
    }

    /**
     * contentType
     *
     * @param contentType contentType
     */
    public void setContentType(String contentType) {
        put("contentType", contentType);
    }

    /**
     * lastModified
     *
     * @return String
     */
    public Long getLastModified() {
        return getLong("lastModified");
    }

    /**
     * lastModified
     *
     * @param lastModified lastModified
     */
    public void setLastModified(long lastModified) {
        put("lastModified", lastModified);
    }

    /**
     * lastModified
     *
     * @param lastModified lastModified
     */
    public void setLastModified(Date lastModified) {
        if (lastModified != null) {
            put("lastModified", lastModified.getTime());
        }
    }

    /**
     * length
     *
     * @return long
     */
    public long getLength() {
        return getlong("length");
    }

    /**
     * length
     *
     * @param length length
     */
    public void setLength(long length) {
        put("length", length);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy