com.genexus.search.TextHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxsearch Show documentation
Show all versions of gxsearch Show documentation
Core classes for the runtime used by Java and Android apps generated with GeneXus
The newest version!
package com.genexus.search;
import java.io.*;
public class TextHandler implements IDocumentHandler
{
public String getText(String filename)
{
try (FileReader rd = new FileReader(filename))
{
File f = new File(filename);
char[] buf = new char[(int)f.length()];
rd.read(buf);
rd.close();
return new String(buf);
}
catch (IOException ex)
{
System.out.println(ex.getMessage());
return "";
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy