public class LocaleFilesProcessor extends Object
Constructor and Description |
---|
LocaleFilesProcessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
createLocaleEntry(String filePath,
String name,
String title,
String description,
org.pentaho.platform.api.repository2.unified.RepositoryFile file,
InputStream is) |
boolean |
createLocaleEntry(String filePath,
String name,
String title,
String description,
org.pentaho.platform.api.repository2.unified.RepositoryFile file,
InputStream is,
int sourceVersion) |
boolean |
isLocaleFile(ImportSource.IRepositoryFileBundle file,
String parentPath,
byte[] bytes) |
Properties |
loadProperties(InputStream inputStream) |
protected void |
proceed(IPlatformImporter importer,
RepositoryFileImportBundle.Builder bundleBuilder,
String mimeType,
LocaleFileDescriptor localeFile) |
void |
processLocaleFiles(IPlatformImporter importer) |
public boolean isLocaleFile(ImportSource.IRepositoryFileBundle file, String parentPath, byte[] bytes) throws IOException
file
- parentPath
- bytes
- IOException
public Properties loadProperties(InputStream inputStream) throws IOException
IOException
public boolean createLocaleEntry(String filePath, String name, String title, String description, org.pentaho.platform.api.repository2.unified.RepositoryFile file, InputStream is) throws IOException
IOException
public boolean createLocaleEntry(String filePath, String name, String title, String description, org.pentaho.platform.api.repository2.unified.RepositoryFile file, InputStream is, int sourceVersion) throws IOException
IOException
public void processLocaleFiles(IPlatformImporter importer) throws PlatformImportException
PlatformImportException
protected void proceed(IPlatformImporter importer, RepositoryFileImportBundle.Builder bundleBuilder, String mimeType, LocaleFileDescriptor localeFile) throws PlatformImportException
PlatformImportException
Copyright © 2018 Hitachi Vantara. All rights reserved.