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

org.nutz.integration.shiro.SerializableByteSource Maven / Gradle / Ivy

There is a newer version: 1.r.69.v20220215
Show newest version
package org.nutz.integration.shiro;

import java.io.File;
import java.io.InputStream;
import java.io.Serializable;

import org.apache.shiro.util.ByteSource;
import org.apache.shiro.util.SimpleByteSource;

/**
 * 可序列号的ByteSource
 * @author wendal
 *
 */
public class SerializableByteSource extends SimpleByteSource implements Serializable {

    private static final long serialVersionUID = 1L;

    public SerializableByteSource(byte[] bytes) {
        super(bytes);
    }

    public SerializableByteSource(char[] chars) {
        super(chars);
    }

    public SerializableByteSource(String string) {
        super(string);
    }

    public SerializableByteSource(ByteSource source) {
        super(source);
    }

    public SerializableByteSource(File file) {
        super(file);
    }

    public SerializableByteSource(InputStream stream) {
        super(stream);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy