Logo

GitLab

Sign in

Xinwen Deng / aem-src

  • Back to Dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • aem-src
  • com
  • day
  • io
  • file
  • SingleValueInputStream.java
  • init
    5f481a33
    Xinwen Deng authored
    2016-10-05 14:31:44 +0800  
    Browse Code ยป
SingleValueInputStream.java 377 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/*
 * Decompiled with CFR 0_118.
 */
package com.day.io.file;

import java.io.IOException;
import java.io.InputStream;

public class SingleValueInputStream
extends InputStream {
    private final byte value;

    public SingleValueInputStream(byte value) {
        this.value = value;
    }

    public int read() throws IOException {
        return this.value & 255;
    }
}