Class ParagraphSampler

java.lang.Object
com.logicaldoc.core.PersistentObject
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable

@Entity public class ParagraphSampler extends StreamSampler
A StreamSampler that extracts the paragraphs interpreted as blocks of text separated by blank lines.
Expected format of each resource is this one:
 A colleague of mine told me that the document 12356897 contains very important information, so I want to get it.
 Understood, but are your registered as LogicalDOC's user ?
 If you are a user, just access the interface and then execute a search by document id = 12356897. 
 
 Where can I locate a specific file? I was not able to find what I was looking for.
 Ok, just enter LogicalDOC and search for document with ID -96668429, it is very easy. 
 Sure! Easy and quick, many thanks for your hint.
 

The example above will produce two paragraphs.

Since:
9.2
Author:
Marco Meschieri - LogicalDOC
See Also:
  • Constructor Details

    • ParagraphSampler

      public ParagraphSampler()
    • ParagraphSampler

      public ParagraphSampler(String name)
    • ParagraphSampler

      public ParagraphSampler(InputStream stream)
  • Method Details