package Ġorg . fn ives . keep ass . android . storage . testutil Ċ Ċ import Ġjava . io . File Ċ import Ġjava . io . InputStream Ċ Ċ fun ĠAny . resource AsStream ( path : ĠString ): ĠInputStream Ġ= ĊĠĠĠ Ġjava Class . class Loader . getResource AsStream ( path ) !! Ċ Ċ fun ĠAny . copy Resource ( path : ĠString ): ĠFile Ġ{ ĊĠĠĠ Ġval Ġresource Ġ= Ġjava Class . class Loader . getResource AsStream ( path ) !! ĊĠĠĠ Ġval Ġfile Ġ= ĠFile . create TempFile (" testing - file ", Ġ" k db x ") ĊĠĠĠ Ġresource . copy To ( file . output Stream ()) ĊĠĠĠ Ġreturn Ġfile Ċ } Ċ