src/com/esotericsoftware/scar/Scar.java
static public String lzma (String file, String lzmaFile) throws IOException {
		if (file == null) throw new IllegalArgumentException("file cannot be null.");
		if (lzmaFile == null) throw new IllegalArgumentException("lzmaFile cannot be null.");

		if (DEBUG) debug("scar", "LZMA encoding: " + file + " -> " + lzmaFile);

		try {
			LzmaAlone.main(new String[] {"e", file, lzmaFile});
		} catch (Exception ex) {
			throw new IOException("Error lzma compressing file: " + file, ex);
		}
		return lzmaFile;
	}
/** Encodes the specified file with LZMA.
	 * @return The path to the encoded file. */
Encodes the specified file with LZMA.
@return The path to the encoded file.
Encodes the specified file with LZMA . @return The path to the encoded file .
static public String lzma (String file, String lzmaFile) throws IOException {
		if (file == null) throw new IllegalArgumentException("file cannot be null.");
		if (lzmaFile == null) throw new IllegalArgumentException("lzmaFile cannot be null.");
		if (DEBUG) debug("scar", "LZMA encoding: " + file + " -> " + lzmaFile);
		try {
			LzmaAlone.main(new String[] {"e", file, lzmaFile});
		} catch (Exception ex) {
			throw new IOException("Error lzma compressing file: " + file, ex);
		}
		return lzmaFile;
	}
static public String lzma ( String file , String lzmaFile ) throws IOException { if ( file == null ) throw new IllegalArgumentException ( "file cannot be null." ) ; if ( lzmaFile == null ) throw new IllegalArgumentException ( "lzmaFile cannot be null." ) ; if ( DEBUG ) debug ( "scar" , "LZMA encoding: " + file + " -> " + lzmaFile ) ; try { LzmaAlone . main ( new String [ ] { "e" , file , lzmaFile } ) ; } catch ( Exception ex ) { throw new IOException ( "Error lzma compressing file: " + file , ex ) ; } return lzmaFile ; }
Encodes the specified file with LZMA.
Encodes the specified file with LZMA .