Package org.aksw.commons.util.entity
Class EntityInfoImpl
- java.lang.Object
-
- org.aksw.commons.util.entity.EntityInfoImpl
-
- All Implemented Interfaces:
EntityInfo
public class EntityInfoImpl extends Object implements EntityInfo
A basic java implementation of the EntityInfo interface- Author:
- raven
-
-
Field Summary
Fields Modifier and Type Field Description protected LongbyteSizeprotected Stringcharsetprotected Set<String>conformsToprotected List<String>contentEncodingsprotected StringcontentTypeprotected Set<String>languageTagsprotected LonguncompressedByteSize
-
Constructor Summary
Constructors Constructor Description EntityInfoImpl(String contentType)EntityInfoImpl(List<String> contentEncodings, String contentType)EntityInfoImpl(List<String> contentEncodings, String contentType, String charset)EntityInfoImpl(List<String> contentEncodings, String contentType, String charset, Set<String> languageTags)EntityInfoImpl(List<String> contentEncodings, String contentType, String charset, Set<String> languageTags, Set<String> conformsTo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)LonggetByteSize()StringgetCharset()Charset, such as UTF-8 or ISO 8859-1Set<String>getConformsTo()A set of IRIs for 'standards' (may be informal or ad-hoc) a resource conforms toList<String>getContentEncodings()StringgetContentType()Set<String>getLanguageTags()The set of language tags for which the content is suitable.LonggetUncompressedByteSize()inthashCode()voidsetByteSize(Long byteSize)voidsetUncompressedByteSize(Long uncompressedByteSize)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.aksw.commons.util.entity.EntityInfo
getEncodingsAsHttpHeader
-
-
-
-
Constructor Detail
-
EntityInfoImpl
public EntityInfoImpl(String contentType)
-
EntityInfoImpl
public EntityInfoImpl(List<String> contentEncodings, String contentType, String charset)
-
EntityInfoImpl
public EntityInfoImpl(List<String> contentEncodings, String contentType, String charset, Set<String> languageTags)
-
-
Method Detail
-
getContentEncodings
public List<String> getContentEncodings()
- Specified by:
getContentEncodingsin interfaceEntityInfo
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceEntityInfo
-
getCharset
public String getCharset()
Description copied from interface:EntityInfoCharset, such as UTF-8 or ISO 8859-1- Specified by:
getCharsetin interfaceEntityInfo- Returns:
-
getLanguageTags
public Set<String> getLanguageTags()
Description copied from interface:EntityInfoThe set of language tags for which the content is suitable.- Specified by:
getLanguageTagsin interfaceEntityInfo- Returns:
-
getConformsTo
public Set<String> getConformsTo()
Description copied from interface:EntityInfoA set of IRIs for 'standards' (may be informal or ad-hoc) a resource conforms to- Specified by:
getConformsToin interfaceEntityInfo
-
getByteSize
public Long getByteSize()
- Specified by:
getByteSizein interfaceEntityInfo
-
setByteSize
public void setByteSize(Long byteSize)
-
getUncompressedByteSize
public Long getUncompressedByteSize()
- Specified by:
getUncompressedByteSizein interfaceEntityInfo
-
setUncompressedByteSize
public void setUncompressedByteSize(Long uncompressedByteSize)
-
-