diff --git a/github-repo-manager/src/main/java/com/axonivy/github/file/FileReference.java b/github-repo-manager/src/main/java/com/axonivy/github/file/FileReference.java index dc5b469..4b5c012 100644 --- a/github-repo-manager/src/main/java/com/axonivy/github/file/FileReference.java +++ b/github-repo-manager/src/main/java/com/axonivy/github/file/FileReference.java @@ -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 { @@ -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); + } +} \ No newline at end of file