1 /*******************************************************************************
\r
2 * Copyright (c) 2014, 2016 Association for Decentralized
\r
3 * Information Management in Industry THTH ry.
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the THTH Simantics
\r
6 * Division Member Component License which accompanies this
\r
7 * distribution, and is available at
\r
8 * http://www.simantics.org/legal/sdmcl-v10.html
\r
11 * Semantum Oy - initial API and implementation
\r
12 *******************************************************************************/
\r
13 package org.simantics.document.server.io;
\r
15 public class Content {
\r
16 private byte[] data;
\r
17 private String mimeType;
\r
18 private long lastModified;
\r
20 public Content(byte[] data, String mimeType, long lastModified) {
\r
22 this.mimeType = mimeType;
\r
23 this.lastModified = lastModified;
\r
26 public byte[] getData() {
\r
30 public void setData(byte[] data) {
\r
34 public String getMimeType() {
\r
38 public void setMimeType(String mimeType) {
\r
39 this.mimeType = mimeType;
\r
42 public long getLastModified() {
\r
43 return lastModified;
\r
46 public void setLastModified(long lastModified) {
\r
47 this.lastModified = lastModified;
\r