Class GitHubResource
java.lang.Object
io.github.agentic.spring.ai.reader.github.GitHubResource
- All Implemented Interfaces:
org.springframework.core.io.InputStreamSource,org.springframework.core.io.Resource
- Since:
- 1.0.0
- Author:
- HeYQ
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGitHubResource(org.kohsuke.github.GHContent content) GitHubResource(org.kohsuke.github.GitHub gitHub, String owner, String repo, @Nullable String branch, String path) -
Method Summary
Modifier and TypeMethodDescriptionstatic GitHubResource.Builderbuilder()longorg.springframework.core.io.ResourcecreateRelative(String relativePath) booleanexists()getFile()static GitHubResourcegetInstance(org.kohsuke.github.GHContent content) org.kohsuke.github.GHContentgetText()getURI()getURL()longMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.io.Resource
getContentAsByteArray, getContentAsString, getFilePath, isFile, isOpen, isReadable, readableChannel
-
Constructor Details
-
GitHubResource
-
GitHubResource
public GitHubResource(org.kohsuke.github.GHContent content)
-
-
Method Details
-
getInstance
-
getText
public org.kohsuke.github.GHContent getText() -
exists
public boolean exists()- Specified by:
existsin interfaceorg.springframework.core.io.Resource
-
getURL
- Specified by:
getURLin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getURI
- Specified by:
getURIin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getFile
- Specified by:
getFilein interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
contentLength
- Specified by:
contentLengthin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
lastModified
- Specified by:
lastModifiedin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
createRelative
- Specified by:
createRelativein interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getFilename
- Specified by:
getFilenamein interfaceorg.springframework.core.io.Resource
-
getDescription
- Specified by:
getDescriptionin interfaceorg.springframework.core.io.Resource
-
getInputStream
- Specified by:
getInputStreamin interfaceorg.springframework.core.io.InputStreamSource- Throws:
IOException
-
builder
-