/******************************************************************************* * Copyright (c) 2014, 2016 Association for Decentralized * Information Management in Industry THTH ry. * All rights reserved. This program and the accompanying materials * are made available under the terms of the THTH Simantics * Division Member Component License which accompanies this * distribution, and is available at * http://www.simantics.org/legal/sdmcl-v10.html * * Contributors: * Semantum Oy - initial API and implementation *******************************************************************************/ package org.simantics.document.server.io; import java.io.InputStream; public class Content { private InputStream input; private String mimeType; private long lastModified; private int length; public Content(InputStream input, String mimeType, long lastModified, int length) { this.input = input; this.mimeType = mimeType; this.lastModified = lastModified; this.length = length; } public InputStream getInputStream() { return input; } public void setInputStream(InputStream input) { this.input = input; } public String getMimeType() { return mimeType; } public void setMimeType(String mimeType) { this.mimeType = mimeType; } public long getLastModified() { return lastModified; } public void setLastModified(long lastModified) { this.lastModified = lastModified; } public int getLength() { return length; } public void setLength(int length) { this.length = length; } }