Constructor and Description |
---|
Container.Entity(IContainer owner,
String name)
Initializes a new instance of the
Entity class. |
Container.Entity(IContainer owner,
String name,
ContainerPath path)
Initializes a new instance of the
Entity class. |
Container.Entity(IContainer owner,
String name,
ContainerPath path,
String mediaType,
Container.EntityParameter... parameters)
Initializes a new instance of the
Entity class. |
Container.Entity(IContainer owner,
String name,
ContainerPath path,
String mediaType,
Date date,
long size,
Container.EntityParameter... parameters)
Initializes a new instance of the
Entity class. |
Modifier and Type | Method and Description |
---|---|
String |
get_Item(String parameterName)
Gets or sets the value associated with the specified key.
|
Date |
getDate()
Gets a date for the entity.
|
List<String> |
getKeys()
Gets a collection containing the keys in the
Container . |
String |
getMediaType()
Gets a media type for the document.
|
String |
getName()
Gets a name of the entity.
|
ContainerPath |
getPath()
Gets a path of the entity.
|
long |
getSize()
Gets a size (in bytes) of the entity.
|
InputStream |
openStream()
Returns the stream with the content of the entity.
|
String |
toString() |
public Container.Entity(IContainer owner, String name)
Initializes a new instance of the Entity
class.
owner
- A reference to the instance of the container.name
- The name of the entity.ArgumentNullException
- owner
is null.public Container.Entity(IContainer owner, String name, ContainerPath path)
Initializes a new instance of the Entity
class.
owner
- A reference to the instance of the container.name
- The name of the entity.path
- The path of the entity.ArgumentNullException
- owner
is null.public Container.Entity(IContainer owner, String name, ContainerPath path, String mediaType, Container.EntityParameter... parameters)
Initializes a new instance of the Entity
class.
owner
- A reference to the instance of the container.name
- The name of the entity.path
- The path of the entity.mediaType
- The media type of the file.parameters
- The collection of the additional file's parameters.ArgumentNullException
- owner
is null.public Container.Entity(IContainer owner, String name, ContainerPath path, String mediaType, Date date, long size, Container.EntityParameter... parameters)
Initializes a new instance of the Entity
class.
owner
- A reference to the instance of the container.name
- The name of the entity.path
- The path of the entity.mediaType
- The media type of the file.date
- The entity time.size
- The entity size (in bytes).parameters
- The collection of the additional file's parameters.ArgumentNullException
- owner
is null.public String getName()
Gets a name of the entity.
public ContainerPath getPath()
Gets a path of the entity.
public String getMediaType()
Gets a media type for the document.
public Date getDate()
Gets a date for the entity.
public long getSize()
Gets a size (in bytes) of the entity.
public List<String> getKeys()
Gets a collection containing the keys in the Container
.
Container
.public String get_Item(String parameterName)
Gets or sets the value associated with the specified key.
parameterName
- The key of the value to get or set.public InputStream openStream()
Returns the stream with the content of the entity.
java.io.InputStream
with the content of the entity.Copyright © 2018. All rights reserved.