private String extractBaseName(Resource baseResourceLocation) { String fileName = baseResourceLocation.getName(); int dotx = fileName.lastIndexOf('.'); return dotx > -1 ? fileName.substring(0, dotx) : fileName; }
String extractBaseName(Resource baseResourceLocation) { String fileName = baseResourceLocation.getName(); int dotx = fileName.lastIndexOf('.'); return dotx > -1 ? fileName.substring(0, dotx) : fileName; }
String extractBaseName(Resource baseResourceLocation) { String fileName = baseResourceLocation.getName(); int dotx = fileName.lastIndexOf('.'); return dotx > -1 ? fileName.substring(0, dotx) : fileName; }
private String extractBaseName(Resource baseResourceLocation) { String fileName = baseResourceLocation.getName(); int dotx = fileName.lastIndexOf('.'); return dotx > -1 ? fileName.substring(0, dotx) : fileName; }
public MessageFinderImpl(Resource baseResource) { Defense.notNull(baseResource, "baseResource"); _baseResource = baseResource; // Strip off the extension to form the base name // when building new (localized) resources. String name = _baseResource.getName(); int dotx = name.lastIndexOf('.'); _baseName = name.substring(0, dotx); }
return readTemplateFromAsset(cycle, component, templateAsset.getResourceLocation()); String name = resource.getName(); int dotx = name.lastIndexOf('.'); String templateExtension = getTemplateExtension(component);
return readTemplateFromAsset(cycle, component, templateAsset.getResourceLocation()); String name = resource.getName(); int dotx = name.lastIndexOf('.'); String templateExtension = getTemplateExtension(component);