Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2012-2015 Johns Hopkins University HLTCOE. All rights reserved.
  * See LICENSE in the project root directory.
  */
 
 package edu.jhu.hlt.concrete.ingesters.base;
 
 
Interface for Concrete ingesters that process documents in character-based files (for example, .txt files with UTF-8 characters).
public interface UTF8FileIngester extends Ingester {
  
Convert an entire character-based file to a Concrete edu.jhu.hlt.concrete.Communication. UTF-8 encoding is assumed.

Parameters:
path the java.nio.file.Path to the character-based file.
Returns:
the prepared edu.jhu.hlt.concrete.Communication
Throws:
IngestException if there are errors with the conversion (for example, the path points to a binary file that cannot be mapped to characters, or the encoding is not UTF-8)
New to GrepCode? Check out our FAQ X