Class ChunkingFactory
- java.lang.Object
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.chunking.ChunkingFactory
-
public class ChunkingFactory extends Object
This class is used to create instance of AbstractChunking.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractChunking
createChunkingInstance(byte[] fileContent)
This method is used to create the instance of AbstractChunking.static AbstractChunking
createChunkingInstance(byte[] fileContent, ChunkingMethod chunkingMethod)
This method is used to create the instance of AbstractChunking.static AbstractChunking
createChunkingInstance(IntermediateNodeObject nodeObject)
This method is used to create the instance of AbstractChunking.
-
-
-
Method Detail
-
createChunkingInstance
public static AbstractChunking createChunkingInstance(byte[] fileContent)
This method is used to create the instance of AbstractChunking.- Parameters:
fileContent
- The content of the file.- Returns:
- The instance of AbstractChunking.
-
createChunkingInstance
public static AbstractChunking createChunkingInstance(IntermediateNodeObject nodeObject) throws TikaException, IOException
This method is used to create the instance of AbstractChunking.- Parameters:
nodeObject
- Specify the root node object.- Returns:
- The instance of AbstractChunking.
- Throws:
TikaException
IOException
-
createChunkingInstance
public static AbstractChunking createChunkingInstance(byte[] fileContent, ChunkingMethod chunkingMethod)
This method is used to create the instance of AbstractChunking.- Parameters:
fileContent
- The content of the file.chunkingMethod
- The type of chunking methods.- Returns:
- The instance of AbstractChunking.
-
-