-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from KevM/fix-84
Fix uri extraction
- Loading branch information
Showing
9 changed files
with
91 additions
and
80 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 was deleted.
Oops, something went wrong.
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
30 changes: 30 additions & 0 deletions
30
src/TikaOnDotnet.TextExtractor/Stream/DotNetOutputStreamAdapter.cs
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,30 @@ | ||
| ||
using java.io; | ||
|
||
namespace TikaOnDotNet.TextExtraction.Stream | ||
{ | ||
internal class DotNetOutputStreamAdapter : OutputStream | ||
{ | ||
private readonly System.IO.Stream _stream; | ||
|
||
public DotNetOutputStreamAdapter(System.IO.Stream stream) | ||
{ | ||
_stream = stream; | ||
} | ||
|
||
public override void write(int b) | ||
{ | ||
_stream.WriteByte((byte) b); | ||
} | ||
|
||
public override void write(byte[] b, int off, int len) | ||
{ | ||
_stream.Write(b, off, len); | ||
} | ||
|
||
public override void write(byte[] b) | ||
{ | ||
_stream.Write(b, 0, b.Length); | ||
} | ||
} | ||
} |
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