-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
save dev. implement interface with bytearray to develop API stream ma… (
#72) * save dev. implement interface with bytearray to develop API stream management * add test byte array management * 0.2.2 * remove debug print * update dependancies * add test. fix coverage --------- Co-authored-by: Olivier Filangi <[email protected]>
- Loading branch information
Showing
21 changed files
with
266 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
src/main/scala/fr/inrae/metabolomics/p2m2/parser/FormatSniffer.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package fr.inrae.metabolomics.p2m2.parser | ||
|
||
import scala.io.Codec | ||
|
||
trait FormatSniffer { | ||
def extensionIsCompatible(filename : String) : Boolean | ||
def sniffFile(filename : String) : Boolean | ||
def sniffByteArray(content: Array[Byte], encode : Codec = Codec("ISO-8859-1") ): Boolean | ||
def sniffFile(filename : String,encode : Codec = Codec("ISO-8859-1") ) : Boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package fr.inrae.metabolomics.p2m2.parser | ||
|
||
import scala.io.Codec | ||
|
||
trait Parser[OutputFormat] { | ||
def parse(filename : String) : OutputFormat | ||
def parseByteArray(content: Array[Byte], encode : Codec = Codec("ISO-8859-1")) : OutputFormat | ||
def parseFile(filename : String, encode : Codec = Codec("ISO-8859-1")) : OutputFormat | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.