@@ -136,6 +136,9 @@ public override void Flush()
136
136
/// <summary>
137
137
/// Set the streams position. This operation is not supported and will throw a NotSupportedException
138
138
/// </summary>
139
+ /// <param name="offset">The offset relative to the origin to seek to.</param>
140
+ /// <param name="origin">The <see cref="SeekOrigin"/> to start seeking from.</param>
141
+ /// <returns>The new position in the stream.</returns>
139
142
/// <exception cref="NotSupportedException">Any access</exception>
140
143
public override long Seek ( long offset , SeekOrigin origin )
141
144
{
@@ -146,6 +149,7 @@ public override long Seek(long offset, SeekOrigin origin)
146
149
/// Sets the length of the stream
147
150
/// This operation is not supported and will throw a NotSupportedException
148
151
/// </summary>
152
+ /// <param name="value">The new stream length.</param>
149
153
/// <exception cref="NotSupportedException">Any access</exception>
150
154
public override void SetLength ( long value )
151
155
{
@@ -156,6 +160,9 @@ public override void SetLength(long value)
156
160
/// Writes a block of bytes to this stream using data from a buffer.
157
161
/// This operation is not supported and will throw a NotSupportedException
158
162
/// </summary>
163
+ /// <param name="buffer">The buffer containing bytes to write.</param>
164
+ /// <param name="offset">The offset in the buffer of the frist byte to write.</param>
165
+ /// <param name="count">The number of bytes to write.</param>
159
166
/// <exception cref="NotSupportedException">Any access</exception>
160
167
public override void Write ( byte [ ] buffer , int offset , int count )
161
168
{
@@ -166,15 +173,16 @@ public override void Write(byte[] buffer, int offset, int count)
166
173
/// Writes a byte to the current position in the file stream.
167
174
/// This operation is not supported and will throw a NotSupportedException
168
175
/// </summary>
176
+ /// <param name="value">The byte value to write.</param>
169
177
/// <exception cref="NotSupportedException">Any access</exception>
170
178
public override void WriteByte ( byte value )
171
179
{
172
180
throw new NotSupportedException ( "TarInputStream WriteByte not supported" ) ;
173
181
}
174
182
/// <summary>
175
183
/// Reads a byte from the current tar archive entry.
176
- /// This method simply calls Read(byte[], int, int).
177
184
/// </summary>
185
+ /// <returns>A byte cast to an int; -1 if the at the end of the stream.</returns>
178
186
public override int ReadByte ( )
179
187
{
180
188
byte [ ] oneByteBuffer = new byte [ 1 ] ;
@@ -473,8 +481,8 @@ public TarEntry GetNextEntry()
473
481
SkipToNextEntry ( ) ;
474
482
headerBuf = this . buffer . ReadBlock ( ) ;
475
483
} else if ( header . TypeFlag != TarHeader . LF_NORMAL &&
476
- header . TypeFlag != TarHeader . LF_OLDNORM &&
477
- header . TypeFlag != TarHeader . LF_DIR ) {
484
+ header . TypeFlag != TarHeader . LF_OLDNORM &&
485
+ header . TypeFlag != TarHeader . LF_DIR ) {
478
486
// Ignore things we dont understand completely for now
479
487
SkipToNextEntry ( ) ;
480
488
headerBuf = this . buffer . ReadBlock ( ) ;
@@ -588,6 +596,7 @@ public class EntryFactoryAdapter : IEntryFactory
588
596
/// Create a <see cref="TarEntry"/> based on named
589
597
/// </summary>
590
598
/// <param name="name">The name to use for the entry</param>
599
+ /// <returns>A new <see cref="TarEntry"/></returns>
591
600
public TarEntry CreateEntry ( string name )
592
601
{
593
602
return TarEntry . CreateTarEntry ( name ) ;
@@ -597,6 +606,7 @@ public TarEntry CreateEntry(string name)
597
606
/// Create a tar entry with details obtained from <paramref name="fileName">file</paramref>
598
607
/// </summary>
599
608
/// <param name="fileName">The name of the file to retrieve details from.</param>
609
+ /// <returns>A new <see cref="TarEntry"/></returns>
600
610
public TarEntry CreateEntryFromFile ( string fileName )
601
611
{
602
612
return TarEntry . CreateEntryFromFile ( fileName ) ;
@@ -606,13 +616,13 @@ public TarEntry CreateEntryFromFile(string fileName)
606
616
/// Create an entry based on details in <paramref name="headerBuf">header</paramref>
607
617
/// </summary>
608
618
/// <param name="headerBuffer">The buffer containing entry details.</param>
619
+ /// <returns>A new <see cref="TarEntry"/></returns>
609
620
public TarEntry CreateEntry ( byte [ ] headerBuffer )
610
621
{
611
622
return new TarEntry ( headerBuffer ) ;
612
623
}
613
624
}
614
625
615
-
616
626
#region Instance Fields
617
627
/// <summary>
618
628
/// Flag set when last block has been read
0 commit comments