Class FileSource
java.lang.Object
org.apache.maven.building.FileSource
- All Implemented Interfaces:
- Source
Deprecated.
Wraps an ordinary 
File as a source.- 
Constructor SummaryConstructorsConstructorDescriptionFileSource(File file) Deprecated.UseFileSource(Path)instead.FileSource(Path path) Deprecated.Creates a new source backed by the specified file.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanDeprecated.getFile()Deprecated.UsegetPath()instead.Deprecated.Gets a byte stream to the source contents.Deprecated.Provides a user-friendly hint about the location of the source.getPath()Deprecated.Gets the file of this source.inthashCode()Deprecated.toString()Deprecated.
- 
Constructor Details- 
FileSourceDeprecated.UseFileSource(Path)instead.Creates a new source backed by the specified file.- Parameters:
- file- The file, must not be- null.
 
- 
FileSourceDeprecated.Creates a new source backed by the specified file.- Parameters:
- path- The file, must not be- null.
- Since:
- 4.0.0
 
 
- 
- 
Method Details- 
getInputStreamDeprecated.Description copied from interface:SourceGets a byte stream to the source contents. Closing the returned stream is the responsibility of the caller.- Specified by:
- getInputStreamin interface- Source
- Returns:
- A byte stream to the source contents, never null.
- Throws:
- IOException- in case of IO issue
 
- 
getLocationDeprecated.Description copied from interface:SourceProvides a user-friendly hint about the location of the source. This could be a local file path, a URI or just an empty string. The intention is to assist users during error reporting.- Specified by:
- getLocationin interface- Source
- Returns:
- A user-friendly hint about the location of the source, never null.
 
- 
getFileDeprecated.UsegetPath()instead.Gets the file of this source.- Returns:
- The underlying file, never null.
 
- 
getPathDeprecated.Gets the file of this source.- Returns:
- The underlying file, never null.
- Since:
- 4.0.0
 
- 
toString
- 
hashCode
- 
equals
 
- 
org.apache.maven.api.servicesinstead