Skip to content

Commit

Permalink
Missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhoan-axonivy committed Dec 23, 2024
1 parent c4a25ab commit 8565a42
Showing 1 changed file with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package com.axonivy.github.file;

import java.io.IOException;

import org.apache.commons.io.IOUtils;

import com.axonivy.github.file.GitHubFiles.FileMeta;
import org.apache.commons.io.IOUtils;

import java.io.IOException;

public record FileReference(FileMeta meta, byte[] content) {
public class FileReference {
FileMeta meta;

public FileReference(FileMeta meta) throws IOException {
this(meta, load(meta));
this.meta = meta;
}

private static byte[] load(FileMeta meta) throws IOException {
Expand All @@ -22,4 +21,11 @@ private static byte[] load(FileMeta meta) throws IOException {
}
}

}
public FileMeta meta() {
return meta;
}

public byte[] content() throws IOException {
return load(meta);
}
}

0 comments on commit 8565a42

Please sign in to comment.