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

com.talk2object.plum.input.value.AbstractFile Maven / Gradle / Ivy

package com.talk2object.plum.input.value;

import com.talk2object.util.ByteSizeUtil;

public abstract class AbstractFile implements File {
	protected String contentType;
	protected long size;

	@Override
	public String getContentType() {
		return contentType;
	}

	@Override
	public long getSize() {
		return size;
	}

	@Override
	public String toString() {

		return String.format("%s(%s)", getContentType(),
				ByteSizeUtil.humanReadableByteCount(getSize(), false));
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy