Custom stream wrapper support

Added support for custom stream wrappers, such as "fly" or "s3".
Support is determined per reader.
This commit is contained in:
Adrien Loison committed 2016-03-18 17:09:13 -07:00
1 parent 0c90d102ef
commit d2ac54c578
10 files changed
+333 -5

No files matched your search

+12 -2
View File
@@ -30,7 +30,7 @@ class Reader extends AbstractReader
protected $encoding = EncodingHelper::ENCODING_UTF8;
/** @var string Defines the End of line */
protected $endOfLineCharacter = "\n";
protected $endOfLineCharacter = "\n";
/**
* Sets the field delimiter for the CSV.
@@ -82,7 +82,17 @@ class Reader extends AbstractReader
{
$this->endOfLineCharacter = $endOfLineCharacter;
return $this;
}
}
/**
* Returns whether stream wrappers are supported
*
* @return bool
*/
protected function doesSupportStreamWrapper()
{
return true;
}
/**
* Opens the file at the given path to make it ready to be read.