public class Preview
extends java.lang.Object
implements java.io.Closeable
Constructor and Description |
---|
Preview() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the underlying InputStream
|
java.lang.String |
getContentType()
Get the HTTP Content-Type of the returned preview
|
java.io.InputStream |
getPreview()
Get the stream representing this preview
|
void |
setContentType(java.lang.String contentType) |
void |
setPreview(java.io.InputStream is) |
public void setPreview(java.io.InputStream is)
public void setContentType(java.lang.String contentType)
public java.lang.String getContentType()
public java.io.InputStream getPreview()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.