com.binaryfantasy.murq.content
Class BinaryContentAdapter

java.lang.Object
  extended by com.binaryfantasy.murq.content.ContentAdapter
      extended by com.binaryfantasy.murq.content.BinaryContentAdapter
All Implemented Interfaces:
IBinaryContent, IContent, IIndexable

public class BinaryContentAdapter
extends ContentAdapter
implements IBinaryContent

Provides default implementation of the methods described in the IBinaryContent interface.

Author:
Bill Weiss

Constructor Summary
BinaryContentAdapter()
           
 
Method Summary
 Set<String> defaultProperties()
          Returns a Set of properties that should be concatenated together for default searching as a whole.
 long getByteCount()
          Returns the number of bytes in the binary content.
 String getFilename()
          Returns the original filename of the binary content.
 Set<String> keywordProperties()
          Returns a Set of properties that are not tokenized, but are indexed.
 void setByteCount(long byteCount)
          Sets the number of bytes in the binary content.
 void setFilename(String filename)
          Sets the original filename of the binary content.
 String toString()
           
 
Methods inherited from class com.binaryfantasy.murq.content.ContentAdapter
getContentId, getCreationDate, getLastModifiedDate, getLocale, setContentId, setCreationDate, setLastModifiedDate, setLocale, textProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.binaryfantasy.murq.content.IContent
getContentId, getCreationDate, getLastModifiedDate, getLocale, setContentId, setCreationDate, setLastModifiedDate, setLocale
 

Constructor Detail

BinaryContentAdapter

public BinaryContentAdapter()
Method Detail

setByteCount

public void setByteCount(long byteCount)
Description copied from interface: IBinaryContent
Sets the number of bytes in the binary content.

FOR INTERNAL USE ONLY.

Specified by:
setByteCount in interface IBinaryContent
Parameters:
byteCount - the number of bytes in the content.

getByteCount

public long getByteCount()
Description copied from interface: IBinaryContent
Returns the number of bytes in the binary content.

Specified by:
getByteCount in interface IBinaryContent
Returns:
the number of bytes in the binary content.

setFilename

public void setFilename(String filename)
Description copied from interface: IBinaryContent
Sets the original filename of the binary content.

Specified by:
setFilename in interface IBinaryContent
Parameters:
filename - the original filename of the binary content.

getFilename

public String getFilename()
Description copied from interface: IBinaryContent
Returns the original filename of the binary content.

Specified by:
getFilename in interface IBinaryContent
Returns:
the original filename of the binary content.

keywordProperties

public Set<String> keywordProperties()
Description copied from interface: IIndexable
Returns a Set of properties that are not tokenized, but are indexed.

Specified by:
keywordProperties in interface IIndexable
Overrides:
keywordProperties in class ContentAdapter
Returns:
a Set of properties that are not tokenized, but are indexed.

defaultProperties

public Set<String> defaultProperties()
Description copied from interface: IIndexable
Returns a Set of properties that should be concatenated together for default searching as a whole.

Specified by:
defaultProperties in interface IIndexable
Overrides:
defaultProperties in class ContentAdapter
Returns:
a Set of properties that should be concatenated together for default searching as a whole.

toString

public String toString()
Overrides:
toString in class ContentAdapter


Copyright (c) 2000-2006, BinaryFantasy.com