Interface CommentHandler
- 
- All Known Implementing Classes:
- CommentHandlers
 
 @Immutable public interface CommentHandler Extracts comments from a buffered reader or collection of lines.- Since:
- 4.0.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable StringextractHeader(BufferedReader reader)Defines the handlers behaviour for reading comments.Stream<String>toComment(Stream<String> lines)Converts the specified lines into a comment.
 
- 
- 
- 
Method Detail- 
extractHeader@Nullable String extractHeader(BufferedReader reader) throws IOException Defines the handlers behaviour for reading comments.- Parameters:
- reader- reader to get input from
- Returns:
- an extracted comment, if any
- Throws:
- IOException- if any IO error occurs in the process
- Since:
- 4.0.0
 
 
- 
 
-