source: josm/trunk/src/org/tukaani/xz/IA64Options.java@ 13350

Last change on this file since 13350 was 13350, checked in by stoecker, 6 years ago

see #15816 - add XZ support

File size: 975 bytes
Line 
1/*
2 * IA64Options
3 *
4 * Author: Lasse Collin <lasse.collin@tukaani.org>
5 *
6 * This file has been put into the public domain.
7 * You can do whatever you want with this file.
8 */
9
10package org.tukaani.xz;
11
12import java.io.InputStream;
13import org.tukaani.xz.simple.IA64;
14
15/**
16 * BCJ filter for Itanium (IA-64) instructions.
17 */
18public class IA64Options extends BCJOptions {
19 private static final int ALIGNMENT = 16;
20
21 public IA64Options() {
22 super(ALIGNMENT);
23 }
24
25 public FinishableOutputStream getOutputStream(FinishableOutputStream out,
26 ArrayCache arrayCache) {
27 return new SimpleOutputStream(out, new IA64(true, startOffset));
28 }
29
30 public InputStream getInputStream(InputStream in, ArrayCache arrayCache) {
31 return new SimpleInputStream(in, new IA64(false, startOffset));
32 }
33
34 FilterEncoder getFilterEncoder() {
35 return new BCJEncoder(this, BCJCoder.IA64_FILTER_ID);
36 }
37}
Note: See TracBrowser for help on using the repository browser.