-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/XML-Parser/XMLPharoFileReferenceReadStreamFactory.class.st
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
" | ||
A StandardFileStream read stream factory. This stream is preferred for Squeak/Pharo because it does no decoding and returns byte characters so XMLParser can do its own decoding. | ||
" | ||
Class { | ||
#name : 'XMLPharoFileReferenceReadStreamFactory', | ||
#superclass : 'XMLFileReadStreamFactory', | ||
#category : 'XML-Parser-Files', | ||
#package : 'XML-Parser', | ||
#tag : 'Files' | ||
} | ||
|
||
{ #category : 'basic' } | ||
XMLPharoFileReferenceReadStreamFactory class >> basicOnPath: aPathString [ | ||
^ aPathString asFileReference ensureCreateFile binaryReadStream | ||
] | ||
|
||
{ #category : 'testing' } | ||
XMLPharoFileReferenceReadStreamFactory class >> isSupportedImplementation [ | ||
^ XMLClassFinder hasClassNamed: #ZnBufferedReadStream | ||
] |
20 changes: 20 additions & 0 deletions
20
src/XML-Parser/XMLPharoFileReferenceWriteStreamFactory.class.st
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
" | ||
A StandardFileStream write stream factory. This stream is preferred for Pharo/Squeak because it does no encoding and accepts byte characters so XMLParser can do its own encoding. | ||
" | ||
Class { | ||
#name : 'XMLPharoFileReferenceWriteStreamFactory', | ||
#superclass : 'XMLFileWriteStreamFactory', | ||
#category : 'XML-Parser-Files', | ||
#package : 'XML-Parser', | ||
#tag : 'Files' | ||
} | ||
|
||
{ #category : 'basic' } | ||
XMLPharoFileReferenceWriteStreamFactory class >> basicOnPath: aPathString [ | ||
^ aPathString asFileReference ensureCreateFile binaryWriteStream | ||
] | ||
|
||
{ #category : 'testing' } | ||
XMLPharoFileReferenceWriteStreamFactory class >> isSupportedImplementation [ | ||
^ XMLClassFinder hasClassNamed: #ZnBufferedWriteStream | ||
] |